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
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: "PHPUnit"
uses: "doctrine/.github/.github/workflows/continuous-integration.yml@12.1.0"
with:
php-versions: '["8.1", "8.2", "8.3", "8.4", "8.5"]'
php-versions: '["8.4", "8.5"]'
phpunit-options-lowest: "--do-not-fail-on-deprecation"
secrets:
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
8 changes: 8 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ awareness about deprecated code.
- Use of our low-overhead runtime deprecation API, details:
https://github.com/doctrine/deprecations/

# Upgrade to 5.0

## BC Break: added type declarations to constants

The code base now has constants with type declarations. If you extend types
from the library and override the constants, you will need to add compatible
type declarations.

# Upgrade to 4.2

## Add `getFieldValue` and `setFieldValue` to `ClassMetadata` implementation
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{"name": "Marco Pivetta", "email": "ocramius@gmail.com"}
],
"require": {
"php": "^8.1",
"php": "^8.4",
"doctrine/deprecations": "^1",
"doctrine/event-manager": "^1 || ^2",
"psr/cache": "^1.0 || ^2.0 || ^3.0"
Expand Down
2 changes: 1 addition & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<!-- Ignore warnings and show progress of the run -->
<arg value="nps"/>

<config name="php_version" value="80100"/>
<config name="php_version" value="80400"/>

<file>src</file>
<file>tests</file>
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ includes:

parameters:
level: 7
phpVersion: 80100
phpVersion: 80400

paths:
- src
Expand Down
2 changes: 1 addition & 1 deletion src/Mapping/ClassMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getIdentifier(): array;
/**
* Gets the ReflectionClass instance for this mapped class.
*
* @return ReflectionClass<T>
* @return ReflectionClass<covariant T>
*/
public function getReflectionClass(): ReflectionClass;

Expand Down
4 changes: 2 additions & 2 deletions src/Proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ interface Proxy
/**
* Marker for Proxy class names.
*/
public const MARKER = '__CG__';
public const string MARKER = '__CG__';

/**
* Length of the proxy marker.
*/
public const MARKER_LENGTH = 6;
public const int MARKER_LENGTH = 6;

/**
* Initializes this proxy if its not yet initialized.
Expand Down
1 change: 1 addition & 0 deletions tests/RuntimeReflectionPropertyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public function testGetValueOnProxyProperty(string $proxyClass): void
$reflProperty = new RuntimeReflectionProperty($proxyClass, 'checkedProperty');

self::assertSame('testValue', $reflProperty->getValue($mockProxy));
/** @phpstan-ignore unset.possiblyHookedProperty */
unset($mockProxy->checkedProperty);
self::assertNull($reflProperty->getValue($mockProxy));
}
Expand Down