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

Using numerics any reference name causes error with v1.8.1 #512

Open
mssimi opened this issue Dec 12, 2024 · 0 comments
Open

Using numerics any reference name causes error with v1.8.1 #512

mssimi opened this issue Dec 12, 2024 · 0 comments

Comments

@mssimi
Copy link

mssimi commented Dec 12, 2024

Bug Report

Q A
Version 1.8.1

Summary

After upgrade from 1.7.0 to 1.8.1 reference name that is numeric does not work, even when it is typed string.

Current behavior

Using numeric reference name causes error with 1.8.1, but not with 1.7.0

Expected behavior

Using numeric reference name working for both 1.7.0 and 1.8.1

How to reproduce

With 1.8.1

$this->setReference('a12345', $anyEntity); // works
$this->setReference('12345', $anyEntity); // throws error 
 Doctrine\Common\DataFixtures\ReferenceRepository::setReferenceIdentity(): A  
  rgument #1 ($name) must be of type string, int given, called in /srv/vendor  
  /doctrine/data-fixtures/src/Event/Listener/ORMReferenceListener.php on line  
   52                       

With 1.7.0

$this->setReference('a12345', $anyEntity); // works
$this->setReference('12345', $anyEntity); // works too
@mssimi mssimi changed the title Using numerics any reference name causes error with PHP 8.4.1 Using numerics any reference name causes error with v1.8.1 Dec 13, 2024
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

No branches or pull requests

1 participant