Skip to content

Commit ce44913

Browse files
committed
support for PHP 8.2
1 parent ef5978d commit ce44913

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
php: ['8.0', '8.1']
10+
php: ['8.0', '8.1', '8.2']
1111

1212
fail-fast: false
1313

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616
],
1717
"require": {
18-
"php": ">=8.0 <8.2",
18+
"php": ">=8.0 <8.3",
1919
"nette/utils": "^3.2.7 || ^4.0"
2020
},
2121
"require-dev": {

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -804,8 +804,8 @@ echo $dumper->dump($var); // prints ['a', 'b', 123]
804804
Compatibility Table
805805
-------------------
806806

807-
- PhpGenerator 4.0 is compatible with PHP 8.0 to 8.1
808-
- PhpGenerator 3.6 is compatible with PHP 7.2 to 8.1
807+
- PhpGenerator 4.0 is compatible with PHP 8.0 to 8.2
808+
- PhpGenerator 3.6 is compatible with PHP 7.2 to 8.2
809809
- PhpGenerator 3.2 – 3.5 is compatible with PHP 7.1 to 8.0
810810
- PhpGenerator 3.1 is compatible with PHP 7.1 to 7.3
811811
- PhpGenerator 3.0 is compatible with PHP 7.0 to 7.3

tests/PhpGenerator/ClassType.from.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $res[] = ClassType::from(Abc\Interface4::class);
2020
$res[] = ClassType::from(Abc\Class1::class);
2121
$res[] = ClassType::from(new Abc\Class2);
2222
$obj = new Abc\Class3;
23-
$obj->prop2 = 1;
23+
@$obj->prop2 = 1; // dynamic property
2424
$res[] = (new Factory)->fromClassReflection(new ReflectionObject($obj));
2525
$res[] = ClassType::from(Abc\Class4::class);
2626
$res[] = ClassType::from(Abc\Class5::class);

0 commit comments

Comments
 (0)