Skip to content

Conversation

@mpdude
Copy link
Contributor

@mpdude mpdude commented Oct 7, 2025

This removes methods that have been deprecated in 2.20.x via #11188 and/or got deprecation notices added in #12196.

Copy link
Member

@greg0ire greg0ire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add something in UPGRADE.md

@mpdude mpdude changed the title Remove deprecated methods from ParserResult Remove deprecated methods from ParserResult and the SingleSelectExecutor class Oct 7, 2025
@greg0ire
Copy link
Member

greg0ire commented Oct 7, 2025

The PHPStan baseline needs an update:

orm/phpstan-baseline.neon

Lines 2319 to 2323 in cdc52b2

-
message: '#^Parameter \#1 \$sql of method Doctrine\\DBAL\\Connection\:\:executeQuery\(\) expects string, list\<string\>\|string given\.$#'
identifier: argument.type
count: 1
path: src/Query/Exec/SingleSelectExecutor.php

@mpdude mpdude force-pushed the drop-deprecated-parser-result-methods branch from 41d021f to 1814d10 Compare October 7, 2025 21:25
@mpdude mpdude force-pushed the drop-deprecated-parser-result-methods branch from 1814d10 to ac45a1c Compare October 8, 2025 08:04
@mpdude
Copy link
Contributor Author

mpdude commented Oct 8, 2025

fixed

@greg0ire
Copy link
Member

greg0ire commented Oct 8, 2025

Moar conflicts 😭

@mpdude mpdude force-pushed the drop-deprecated-parser-result-methods branch from ac45a1c to 8f95375 Compare October 8, 2025 20:57
@greg0ire
Copy link
Member

greg0ire commented Oct 8, 2025

Needs phpcbf :P

@mpdude mpdude force-pushed the drop-deprecated-parser-result-methods branch from 75c0189 to c5c66e5 Compare October 9, 2025 07:56
@greg0ire
Copy link
Member

I think it is not important so support unserializing parser results from another major version release.

I'm not sure I agree… did you remove this test because it broke? If yes, there should be instructions in UPGRADE.md explaining what's needed to update from 3 to 4… clearing a cache, I guess.

@greg0ire greg0ire requested a review from derrabus October 10, 2025 19:09
@mpdude
Copy link
Contributor Author

mpdude commented Oct 11, 2025

IIRC yes – unserializing an old (2.x) ParserResult caused a notice, since it contained fields that now are no longer present in the class. I'll definetly add an upgrade notice.

…ecutor` class

This removes methods that have been deprecated in 2.20.x via doctrine#11188 and/or got deprecation notices added in doctrine#12196.
@mpdude mpdude force-pushed the drop-deprecated-parser-result-methods branch from c5c66e5 to 713c985 Compare October 11, 2025 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants