Skip to content

Commit

Permalink
Merge pull request #27 from ghostwriter/feature/php-8.2-support
Browse files Browse the repository at this point in the history
Feature: Support PHP 8.2
  • Loading branch information
Ocramius authored Nov 15, 2022
2 parents 1213445 + 5c03428 commit de81681
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .laminas-ci.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"gd"
],
"ignore_php_platform_requirements": {
"8.2": true
"8.2": true
}
}
}
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
"config": {
"sort-packages": true,
"platform": {
"php": "7.4.99"
"php": "8.0.99"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"extra": {},
"require": {
"php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0",
"php": "~8.0.0 || ~8.1.0 || ~8.2.0",
"laminas/laminas-recaptcha": "^3.4.0",
"laminas/laminas-session": "^2.12",
"laminas/laminas-stdlib": "^3.10.1",
Expand Down
6 changes: 3 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
use Traversable;

use function class_exists;
use function get_class;
use function gettype;
use function get_debug_type;
use function is_array;
use function is_object;
use function sprintf;
use function strtolower;

Expand Down Expand Up @@ -41,7 +39,7 @@ public static function factory($options)
throw new Exception\InvalidArgumentException(sprintf(
'%s expects an array or Traversable argument; received "%s"',
__METHOD__,
is_object($options) ? get_class($options) : gettype($options)
get_debug_type($options)
));
}

Expand Down

0 comments on commit de81681

Please sign in to comment.