Skip to content

Commit 3628572

Browse files
committed
Include PHP 8.4 test coverage
- also fixes deprecations on implicit null Signed-off-by: Arthur Schiwon <[email protected]>
1 parent 18ea1c3 commit 3628572

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/php-package.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
operating-system: ['ubuntu-latest']
19-
php-versions: [7.3, 7.4, 8.0, 8.1, 8.2, 8.3]
19+
php-versions: [7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4]
2020
steps:
2121
- name: Setup PHP, with composer and extensions
2222
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
@@ -46,9 +46,9 @@ jobs:
4646
php vendor/bin/phploc src/.
4747
mkdir -p tests/build/dependences
4848
php vendor/bin/pdepend --summary-xml=tests/build/logs/dependence-summary.xml --jdepend-chart=tests/build/dependences/jdepend.svg --overview-pyramid=tests/build/dependences/pyramid.svg src/.
49-
49+
5050
- name: PHP Code Sniffer
5151
run: php vendor/bin/phpcs --standard=tests/ZendModStandard src/Saml2 demo1 demo2 endpoints tests/src
52-
52+
5353
- name: Run unit tests
5454
run: vendor/bin/phpunit --verbose --debug

src/Saml2/Auth.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class Auth
171171
* @throws Exception
172172
* @throws Error
173173
*/
174-
public function __construct(array $settings = null, bool $spValidationOnly = false)
174+
public function __construct(?array $settings = null, bool $spValidationOnly = false)
175175
{
176176
$this->_settings = new Settings($settings, $spValidationOnly);
177177
}

src/Saml2/Settings.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class Settings
120120
* @throws Error If any settings parameter is invalid
121121
* @throws Exception If Settings is incorrectly supplied
122122
*/
123-
public function __construct(array $settings = null,bool $spValidationOnly = false)
123+
public function __construct(?array $settings = null,bool $spValidationOnly = false)
124124
{
125125
$this->_spValidationOnly = $spValidationOnly;
126126
$this->_loadPaths();

src/Saml2/Utils.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ public static function getExpireTime($cacheDuration = null, $validUntil = null)
954954
*
955955
* @return DOMNodeList The queried nodes
956956
*/
957-
public static function query(DOMDocument $dom, $query, DOMElement $context = null)
957+
public static function query(DOMDocument $dom, $query, ?DOMElement $context = null)
958958
{
959959
$xpath = new DOMXPath($dom);
960960
$xpath->registerNamespace('samlp', Constants::NS_SAMLP);

0 commit comments

Comments
 (0)