Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/backwards-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: '8.5'

- name: Install roave/backward-compatibility-check
run: composer require --dev roave/backward-compatibility-check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']

steps:
- uses: actions/checkout@v6
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
"http-interop/http-factory-guzzle": "^1.0",
"guzzlehttp/guzzle": "^7.2",
"php-http/mock-client": "^1.4.1",
"phpstan/phpstan": "^0.12.57",
"phpstan/phpstan": "^1",
"phpstan/extension-installer": "^1.0.5",
"phpstan/phpstan-deprecation-rules": "^0.12.5",
"phpstan/phpstan-deprecation-rules": "^1",
"phpunit/phpunit": "^8.5 || ^9.4",
"symfony/phpunit-bridge": "^5.2"
},
Expand Down
5 changes: 3 additions & 2 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ parameters:
ignoreErrors:
# Ignore typehint errors on api classes
-
message: '#Method (.*) with no typehint specified\.#'
identifier: missingType.return
path: lib/Github/Api

-
message: '#Method (.*) has no return typehint specified\.#'
identifier: missingType.parameter
path: lib/Github/Api
4 changes: 3 additions & 1 deletion test/Github/Tests/Api/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ protected function getApiMock()
protected function getMethod($object, $methodName)
{
$method = new ReflectionMethod($object, $methodName);
$method->setAccessible(true);
if (version_compare(PHP_VERSION, '8.5.0', '<')) {
$method->setAccessible(true);
}

return $method;
}
Expand Down
Loading