Skip to content
Merged
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
10 changes: 1 addition & 9 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,8 @@ jobs:
max-parallel: 2
matrix:
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- 8.0
- 8.1
- 8.2
- 8.3
- 8.4
os:
- ubuntu-latest
name: PHP ${{ matrix.php }}; ${{ matrix.os }}
Expand Down
65 changes: 35 additions & 30 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,38 @@
{
"name": "imponeer/object-errors",
"description": "Library that adds a possibility to collect errors for objects",
"keywords": [
"errors",
"collection",
"object"
],
"type": "library",
"require-dev": {
"phpunit/phpunit": "^5.2|^7.0|^8.0",
"mockery/mockery": "^1.0"
},
"require": {
"ext-json": "*",
"php": ">=5.6"
},
"license": "MIT",
"authors": [
{
"name": "Raimondas Rimkevičius",
"email": "mekdrop@impresscms.org"
"name": "imponeer/object-errors",
"description": "Library that adds a possibility to collect errors for objects",
"keywords": [
"errors",
"collection",
"object"
],
"type": "library",
"require-dev": {
"phpunit/phpunit": "^5.2|^7.0|^8.0",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Update PHPUnit version constraint for PHP 8.3+ compatibility.

The current PHPUnit constraint ^5.2|^7.0|^8.0 includes very old versions that may not be compatible with PHP 8.3. PHPUnit 5.2 was released in 2016 and doesn't support PHP 8.3.

Update the PHPUnit constraint to support modern PHP versions:

-		"phpunit/phpunit": "^5.2|^7.0|^8.0",
+		"phpunit/phpunit": "^9.5|^10.0|^11.0",

Let me verify the PHPUnit version compatibility:


🌐 Web query:

What are the PHP version requirements for PHPUnit versions 5.2, 7.0, 8.0, 9.5, 10.0, and 11.0?

💡 Result:

Here are the PHP version requirements for the specified PHPUnit versions:

PHPUnit Version PHP Compatibility
5.2 PHP 5.6 - PHP 7.1
7.0 PHP 7.1 - PHP 7.3
8.0 PHP 7.2 - PHP 7.4
9.5 PHP 7.3 - PHP 8.0
10.0 PHP 8.1 or later
11.0 PHP 8.2 or later

For detailed information on supported versions, you can refer to the official PHPUnit supported versions page. (phpunit.de)

Citations:


Update PHPUnit constraint for PHP 8.3+ compatibility

The existing constraint

"phpunit/phpunit": "^5.2|^7.0|^8.0",

only covers up to PHP 8.0 and includes EOL PHPUnit versions. To ensure coverage on PHP 8.3 (and modern PHP releases) while still testing on PHP 7.3/7.4 if needed, bump to:

File: composer.json
Line: 11

-    "phpunit/phpunit": "^5.2|^7.0|^8.0",
+    "phpunit/phpunit": "^9.5|^10.0|^11.0",
  • ^9.5 → supports PHP 7.3–8.0
  • ^10.0 → supports PHP 8.1+
  • ^11.0 → supports PHP 8.2+ (and therefore PHP 8.3)
🤖 Prompt for AI Agents
In composer.json at line 11, update the PHPUnit version constraint from
"^5.2|^7.0|^8.0" to include modern supported versions for PHP 8.3 and above.
Replace it with "^9.5|^10.0|^11.0" to cover PHPUnit versions compatible with PHP
7.3 through PHP 8.3+, ensuring testing compatibility with current and future PHP
releases.

"mockery/mockery": "^1.0"
},
"require": {
"ext-json": "*",
"php": ">=8.3"
},
"license": "MIT",
"authors": [
{
"name": "Raimondas Rimkevičius",
"email": "mekdrop@impresscms.org"
}
],
"autoload": {
"psr-4": {
"Imponeer\\ObjectErrors\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Imponeer\\ObjectErrors\\Tests\\": "tests/"
}
},
"scripts": {
"test": "phpunit --testdox"
}
],
"autoload": {
"psr-4": {
"Imponeer\\ObjectErrors\\": "src/"
}
},
"scripts": {
"test": "phpunit --testdox"
}
}
Loading