Skip to content

Commit 4144e9b

Browse files
authored
Merge pull request #473 from greg0ire/php84-min
Require PHP 8.4
2 parents 4830826 + 68d47dc commit 4144e9b

File tree

8 files changed

+16
-7
lines changed

8 files changed

+16
-7
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
name: "PHPUnit"
1515
uses: "doctrine/.github/.github/workflows/continuous-integration.yml@12.1.0"
1616
with:
17-
php-versions: '["8.1", "8.2", "8.3", "8.4", "8.5"]'
17+
php-versions: '["8.4", "8.5"]'
1818
phpunit-options-lowest: "--do-not-fail-on-deprecation"
1919
secrets:
2020
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"

UPGRADE.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ awareness about deprecated code.
66
- Use of our low-overhead runtime deprecation API, details:
77
https://github.com/doctrine/deprecations/
88

9+
# Upgrade to 5.0
10+
11+
## BC Break: added type declarations to constants
12+
13+
The code base now has constants with type declarations. If you extend types
14+
from the library and override the constants, you will need to add compatible
15+
type declarations.
16+
917
# Upgrade to 4.2
1018

1119
## Add `getFieldValue` and `setFieldValue` to `ClassMetadata` implementation

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
{"name": "Marco Pivetta", "email": "ocramius@gmail.com"}
2121
],
2222
"require": {
23-
"php": "^8.1",
23+
"php": "^8.4",
2424
"doctrine/deprecations": "^1",
2525
"doctrine/event-manager": "^1 || ^2",
2626
"psr/cache": "^1.0 || ^2.0 || ^3.0"

phpcs.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<!-- Ignore warnings and show progress of the run -->
1313
<arg value="nps"/>
1414

15-
<config name="php_version" value="80100"/>
15+
<config name="php_version" value="80400"/>
1616

1717
<file>src</file>
1818
<file>tests</file>

phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ includes:
66

77
parameters:
88
level: 7
9-
phpVersion: 80100
9+
phpVersion: 80400
1010

1111
paths:
1212
- src

src/Mapping/ClassMetadata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function getIdentifier(): array;
3535
/**
3636
* Gets the ReflectionClass instance for this mapped class.
3737
*
38-
* @return ReflectionClass<T>
38+
* @return ReflectionClass<covariant T>
3939
*/
4040
public function getReflectionClass(): ReflectionClass;
4141

src/Proxy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ interface Proxy
1414
/**
1515
* Marker for Proxy class names.
1616
*/
17-
public const MARKER = '__CG__';
17+
public const string MARKER = '__CG__';
1818

1919
/**
2020
* Length of the proxy marker.
2121
*/
22-
public const MARKER_LENGTH = 6;
22+
public const int MARKER_LENGTH = 6;
2323

2424
/**
2525
* Initializes this proxy if its not yet initialized.

tests/RuntimeReflectionPropertyTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public function testGetValueOnProxyProperty(string $proxyClass): void
5454
$reflProperty = new RuntimeReflectionProperty($proxyClass, 'checkedProperty');
5555

5656
self::assertSame('testValue', $reflProperty->getValue($mockProxy));
57+
/** @phpstan-ignore unset.possiblyHookedProperty */
5758
unset($mockProxy->checkedProperty);
5859
self::assertNull($reflProperty->getValue($mockProxy));
5960
}

0 commit comments

Comments
 (0)