Skip to content

Commit a869a8b

Browse files
author
Alexander Lentner
committed
chore: Add PHP 8.5 Support
1 parent d61cdec commit a869a8b

5 files changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: true
1414
matrix:
15-
php: [ "8.0", "8.1", "8.2", "8.3", "8.4" ]
15+
php: [ "8.2", "8.3", "8.4", "8.5" ]
1616

1717
runs-on: ubuntu-latest
1818
name: PHP@${{ matrix.php }}

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [5.1.0] - 2026-01-27
8+
### Added
9+
- Support for PHP 8.5.
10+
11+
### Removed
12+
- Support for PHP 8.0. and PHP 8.1.
13+
714
## [5.0.1] - 2025-01-09
815
### Added
916
- Support for PHP 8.3. and PHP 8.4.

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
}
2222
},
2323
"require": {
24-
"php": "8.0.* | 8.1.* | 8.2.* | 8.3.* | 8.4.*",
24+
"php": "8.2.* | 8.3.* | 8.4.* | 8.5.*",
2525
"php-di/phpdoc-reader": "^2.1"
2626
},
2727
"require-dev": {
2828
"laravel/pint": "^1.5 | ^1.6",
29-
"pestphp/pest": "^1.22 | ^2.0 | ^3.0",
29+
"pestphp/pest": "^1.22 | ^2.0 | ^3.0 | ^4.0",
3030
"phpstan/phpstan": "^1.10 | ^2.0"
3131
},
3232
"scripts": {

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" colors="true" cacheDirectory=".phpunit.cache">
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" colors="true" cacheDirectory=".phpunit.cache" failOnDeprecation="true">
33
<testsuites>
44
<testsuite name="Json Decoder Test Suite">
55
<directory>./tests</directory>

src/Property.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ public static function create(object $instance, string $propertyName): self
2626

2727
try {
2828
$property = new ReflectionProperty($instance, $propertyName);
29-
$property->setAccessible(true);
3029
} catch (ReflectionException) {
3130
}
3231

@@ -44,7 +43,6 @@ public function set(mixed $value): void
4443
$property = new ReflectionProperty(get_class($this->instance), $this->propertyName);
4544

4645
if ($this->valueHasCorrectType($property, $value)) {
47-
$property->setAccessible(true);
4846
$property->setValue($this->instance, $value);
4947
}
5048
} catch (ReflectionException) {

0 commit comments

Comments
 (0)