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

A few more php 8.1 things #92

Merged
merged 3 commits into from
Jan 10, 2023

Conversation

thirsch
Copy link
Collaborator

@thirsch thirsch commented Dec 15, 2022

I'm currently comparing the current master to our fork with php 8.0 and 8.1 fixes and stumbled upon these changes.

@@ -118,7 +118,7 @@ public function flush()
$coll->takeSnapshot();
}
$this->_initializedRelations = null;
$this->_collections = null;
$this->_collections = array();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is not really related to 8.1. Flushing twice caused a warning due to the $_collection being set to null.

@@ -1704,7 +1704,7 @@ public function findByDql($dql, $params = array(), $hydrationMode = null)
* Find records basing on a field.
*
* @param string $column field for the WHERE clause
* @param string $value prepared statement parameter
* @param string|array $value prepared statement parameter
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These two are not related to 8.1 as well, but it's nice in editors with code assist to know the correct types.

@thirsch thirsch force-pushed the feature/php-8.1-support branch from 71e007b to f7793f0 Compare January 10, 2023 07:35
@thePanz thePanz merged commit 6ff2997 into FriendsOfSymfony1:master Jan 10, 2023
@JohannesTyra
Copy link

Thx @thePanz for merging the commit.

The release v1.4.0-RC1 is marked as "pre-release", is there a "final release" v.1.4.x marked as "latest" planed soon or are there any open issues / pull-requests?

@thePanz
Copy link
Member

thePanz commented Jan 10, 2023

@JohannesTyra I tagged v1.4.0-RC2

The aim is to gather more feedback from users before releasing the v1.4.0
Do you face any issues with the current v1.4.0-RC2?

@JohannesTyra
Copy link

@thePanz Thx. I will check it asap.

@JohannesTyra
Copy link

@thePanz i found something.

Its on building the doctrine classes via console.

`

doctrine generating form classes

PHP Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in vendor/friendsofsymfony1/doctrine1/lib/Doctrine/Table.php on line 1182
`


Afterwords its IN the generated base classes und results in corrupted files.
(because the output is passed there)

@JohannesTyra
Copy link

@thePanz added an issue: #95

@thirsch
Copy link
Collaborator Author

thirsch commented Feb 20, 2023

@thePanz i found something.

Its on building the doctrine classes via console.

`

doctrine generating form classes

PHP Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in vendor/friendsofsymfony1/doctrine1/lib/Doctrine/Table.php on line 1182 `

Afterwords its IN the generated base classes und results in corrupted files. (because the output is passed there)

@thePanz as the fix for this is merged now, how about a release 1.4.0?

@thePanz
Copy link
Member

thePanz commented Feb 20, 2023

Yup, why not :)
Will tag the release soon

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.

3 participants