Skip to content

Commit b8e137e

Browse files
committed
chore: compatibility with PHP 8.5
1 parent 79ea252 commit b8e137e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"minimum-stability": "dev",
2424
"prefer-stable": true,
2525
"require": {
26-
"php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
26+
"php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0",
2727
"b2pweb/bdf-form": "~1.1",
2828
"nette/php-generator": "~3.6|~4.0"
2929
},

src/Processor/ReflectionProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function configureBuilder(AttributeForm $form, FormBuilderInterface $buil
5858
}
5959

6060
$elementType = $property->getType()->getName();
61-
$property->setAccessible(true);
61+
PHP_VERSION_ID >= 80100 or $property->setAccessible(true);
6262

6363
if ($elementType === ButtonInterface::class) {
6464
$buttonProperties[$name] = $property;

0 commit comments

Comments
 (0)