Skip to content

Conversation

@derrabus
Copy link
Member

@derrabus derrabus commented Oct 7, 2025

We want to be notified early about runtime deprecations. This is why I'm adding a job that fails if deprecations are being triggered during the execution of the PHPUnit test suite.

@derrabus derrabus force-pushed the improvement/fail-on-deprecations branch from 1eeea2b to 3ccfff4 Compare October 7, 2025 12:34
@derrabus derrabus changed the base branch from 3.6.x to 3.5.x October 7, 2025 12:34
@derrabus derrabus closed this Oct 7, 2025
@derrabus derrabus reopened this Oct 7, 2025
@derrabus derrabus added the CI label Oct 7, 2025
@derrabus derrabus added this to the 3.5.3 milestone Oct 7, 2025
@derrabus derrabus marked this pull request as ready for review October 7, 2025 12:40
@derrabus
Copy link
Member Author

derrabus commented Oct 7, 2025

cc @xabbuh @nicolas-grekas

@xabbuh
Copy link
Member

xabbuh commented Oct 7, 2025

if I don't miss anything there is one additional warning compared to what would be fixed with #12160/#12181:

1 test triggered 1 PHP warning:

1) /home/runner/work/orm/orm/vendor/doctrine/dbal/src/Types/BigIntType.php:57
The float-string "92233720368547758079223372036854775807" is not representable as an int, cast occurred

Triggered by:

* Doctrine\Tests\ORM\Functional\Ticket\DDC3634Test::testSavesVeryLargeIntegerAutoGeneratedValue
  /home/runner/work/orm/orm/tests/Tests/ORM/Functional/Ticket/DDC3634Test.php:55

@xabbuh
Copy link
Member

xabbuh commented Oct 7, 2025

merging the changes from #12182 into upper branches will also resolve two of the reported deprecations

@derrabus derrabus force-pushed the improvement/fail-on-deprecations branch from 3ccfff4 to a02f037 Compare October 7, 2025 13:51
@derrabus
Copy link
Member Author

derrabus commented Oct 7, 2025

I've merged up @xabbuh's changes and rebased my PR on top of them.

@derrabus derrabus merged commit c6db9fe into doctrine:3.5.x Oct 7, 2025
78 of 79 checks passed
@derrabus derrabus deleted the improvement/fail-on-deprecations branch October 7, 2025 14:03
derrabus added a commit to derrabus/orm that referenced this pull request Oct 7, 2025
* 3.5.x:
  Add a CI job that fails on deprecations (doctrine#12188)
  use the empty string instead of null as an array offset (doctrine#12181)
  do not call setAccessible() on PHP >= 8.1 (doctrine#12182)
  Fix docs on final entities (doctrine#12176)
  Remove Database and Model First chapters that said little of value.
  Switch to IgnoreDeprecations
  docs: consistent PostgreSQL's name case
  docs: generation strategies differences between DBAL 3 and 4
  Check extra condition to decide if a test was skipped
  Use PHPUnit 11 when possible
  Migrate away from annotations in tests
  Migrate away from assertStringNotMatchesFormat()
  Migrate to willReturn()
  Migrate away from getMockForAbstractClass()
  Fix `IN`/`NOT IN` expression handling and support enums when matching on to-many-collections
derrabus added a commit to derrabus/orm that referenced this pull request Oct 7, 2025
* 3.6.x:
  Add a CI job that fails on deprecations (doctrine#12188)
  use the empty string instead of null as an array offset (doctrine#12181)
  do not call setAccessible() on PHP >= 8.1 (doctrine#12182)
  Fix docs on final entities (doctrine#12176)
  Remove Database and Model First chapters that said little of value.
  Switch to IgnoreDeprecations
  Fix php doc for getPropertyAccessors method (doctrine#12159)
  docs: consistent PostgreSQL's name case
  docs: generation strategies differences between DBAL 3 and 4
  Check extra condition to decide if a test was skipped
  Use PHPUnit 11 when possible
  Migrate away from annotations in tests
  Migrate away from assertStringNotMatchesFormat()
  Migrate to willReturn()
  Migrate away from getMockForAbstractClass()
  Fix `IN`/`NOT IN` expression handling and support enums when matching on to-many-collections
derrabus added a commit to derrabus/orm that referenced this pull request Oct 8, 2025
* 3.6.x:
  Fix missing import
  Remove calls to getMockForAbstractClass() (doctrine#12003)
  Add a CI job that fails on deprecations (doctrine#12188)
  use the empty string instead of null as an array offset (doctrine#12181)
  Upgrade to doctrine/coding-standard 14
  Bump doctrine/.github from 7.3.0 to 8.0.0
  do not call setAccessible() on PHP >= 8.1 (doctrine#12182)
  Fix docs on final entities (doctrine#12176)
  Remove Database and Model First chapters that said little of value.
  Switch to IgnoreDeprecations
  Fix php doc for getPropertyAccessors method (doctrine#12159)
  docs: consistent PostgreSQL's name case
  docs: generation strategies differences between DBAL 3 and 4
  Check extra condition to decide if a test was skipped
  Use PHPUnit 11 when possible
  Migrate away from annotations in tests
  Migrate away from assertStringNotMatchesFormat()
  Migrate to willReturn()
  Migrate away from getMockForAbstractClass()
  Fix `IN`/`NOT IN` expression handling and support enums when matching on to-many-collections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants