Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unserialize() errors when running tests on PHP 8.3 #10803

Merged
merged 1 commit into from
Jun 27, 2023

Conversation

nicolas-grekas
Copy link
Member

Without this patch:

There were 2 errors:

  1. Doctrine\Tests\ORM\Functional\ParserResultSerializationTest::testUnserializeSingleSelectResult with data set "2.14.3" (Binary String: 0x4f3a33313a224...d7d7d0a)
    unserialize(): Extra data starting at offset 2372 of 2373 bytes

tests/Doctrine/Tests/ORM/Functional/ParserResultSerializationTest.php:48

  1. Doctrine\Tests\ORM\Functional\ParserResultSerializationTest::testUnserializeSingleSelectResult with data set "2.15.0" (Binary String: 0x4f3a33313a224...d7d7d0a)
    unserialize(): Extra data starting at offset 2369 of 2370 bytes

tests/Doctrine/Tests/ORM/Functional/ParserResultSerializationTest.php:48

@derrabus derrabus added this to the 2.15.4 milestone Jun 27, 2023
@derrabus
Copy link
Member

Nice catch!

@derrabus derrabus merged commit 55d477d into doctrine:2.15.x Jun 27, 2023
nicolas-grekas added a commit to nicolas-grekas/doctrine-orm that referenced this pull request Jul 7, 2023
* 2.15.x: (23 commits)
  Fix cloning entities when using lazy-ghost proxies
  Fixes recomputation of single entity change set when entity contains enum attributes. Due to the fact that originalEntityData contains enum objects and ReflectionEnumProperty::getValue() returns value of enum, comparison of values are always falsy, resulting to update columns value even though it has not changes.
  Fix code style issues
  Use absolute references
  Avoid colon followed by double colon
  Use correct syntax for references
  Fix invalid reference syntax
  Use rst syntax
  Use internal link
  Escape pipes
  Introduce new workflow to test docs
  Remove lone dash (doctrine#10812)
  Treat id field proprites same as regular field
  Move three "Ticket/"-style tests to the right namespace
  Follow recommendation about multiline type
  Fix unserialize() errors when running tests on PHP 8.3 (doctrine#10803)
  Explain `EntityManager::getReference()` peculiarities (doctrine#10800)
  Upgrade to Psalm 5.13
  test: assert `postLoad` has data first
  distinct() updates QueryBuilder state correctly
  ...
nicolas-grekas added a commit to nicolas-grekas/doctrine-orm that referenced this pull request Jul 7, 2023
* 2.15.x: (23 commits)
  Fix cloning entities when using lazy-ghost proxies
  Fixes recomputation of single entity change set when entity contains enum attributes. Due to the fact that originalEntityData contains enum objects and ReflectionEnumProperty::getValue() returns value of enum, comparison of values are always falsy, resulting to update columns value even though it has not changes.
  Fix code style issues
  Use absolute references
  Avoid colon followed by double colon
  Use correct syntax for references
  Fix invalid reference syntax
  Use rst syntax
  Use internal link
  Escape pipes
  Introduce new workflow to test docs
  Remove lone dash (doctrine#10812)
  Treat id field proprites same as regular field
  Move three "Ticket/"-style tests to the right namespace
  Follow recommendation about multiline type
  Fix unserialize() errors when running tests on PHP 8.3 (doctrine#10803)
  Explain `EntityManager::getReference()` peculiarities (doctrine#10800)
  Upgrade to Psalm 5.13
  test: assert `postLoad` has data first
  distinct() updates QueryBuilder state correctly
  ...
@nicolas-grekas nicolas-grekas deleted the php83-unser branch July 7, 2023 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants