demos-europe / edt

Enables your PHP application to expose its entities as REST resources using the feature rich JSON:API specification as API. How and to whom your entities are exposed is highly customizable while minimizing boilerplate code.
MIT License
2 stars 1 forks source link

build(deps): update doctrine/orm requirement from ^2.5 to ^3.1 #122

Closed dependabot[bot] closed 3 months ago

dependabot[bot] commented 6 months ago

Updates the requirements on doctrine/orm to permit the latest version.

Release notes

Sourced from doctrine/orm's releases.

3.1.0

Release Notes for 3.1.0

Feature release (minor)

3.1.0

  • Total issues resolved: 0
  • Total pull requests resolved: 11
  • Total contributors: 2

Deprecation

Improvement

Static Analysis

Documentation,Improvement

Changes from Lower Branches

  • This release contains all changes of the 2.19.0 release.
Commits
  • 716fc97 Merge branch '2.19.x' into 3.1.x
  • a809a71 Prepare releases 2.19 and 3.1 (#11335)
  • 4617a5e Merge branch '2.19.x' into 3.1.x
  • e77c5a3 Merge branch '3.0.x' into 3.1.x
  • c3cc0fd Merge branch '2.18.x' into 3.0.x
  • bd4449c Merge branch '2.18.x' into 2.19.x
  • e3e9674 Fix annotation
  • 12e0cef Merge branch '2.18.x' into 2.19.x
  • 21221f7 Bump CI workflows (#11336)
  • ab5e9e3 Fix SchemaTool::getSchemaFromMetadata() uniqueConstraint without a predefined...
  • Additional commits viewable in compare view


You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

dresslerdemos commented 4 months ago

Doctrine 3 is not supported yet.

 % composer phpstan     
> phpstan analyse
Note: Using configuration file /home/christian/demos-projects/edt/phpstan.neon.
 355/355 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

 ------ -------------------------------------------------------------------------------------------------------------------------- 
  Line   dql/src/PropertyAccessors/ProxyPropertyAccessor.php                                                                       
 ------ -------------------------------------------------------------------------------------------------------------------------- 
  39     Class Doctrine\ORM\Mapping\ClassMetadataInfo not found.                                                                   
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                       
  40     Access to property $associationMappings on an unknown class Doctrine\ORM\Mapping\ClassMetadataInfo.                       
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                       
  40     Cannot access offset 'type' on mixed.                                                                                     
  40     Cannot access offset non-empty-string on mixed.                                                                           
  42     Access to constant MANY_TO_MANY on an unknown class Doctrine\ORM\Mapping\ClassMetadataInfo.                               
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                       
  42     Access to constant ONE_TO_MANY on an unknown class Doctrine\ORM\Mapping\ClassMetadataInfo.                                
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                       
  69     Class Doctrine\ORM\Mapping\ClassMetadataInfo not found.                                                                   
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                       
  73     Access to property $rootEntityName on an unknown class Doctrine\ORM\Mapping\ClassMetadataInfo.                            
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                       
  75     Method EDT\DqlQuerying\PropertyAccessors\ProxyPropertyAccessor::getClass() should return class-string but returns mixed.  
 ------ -------------------------------------------------------------------------------------------------------------------------- 

 ------ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
  Line   dql/src/Utilities/JoinFinder.php                                                                                                                                                      
 ------ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
  58     Parameter $classMetadata of method EDT\DqlQuerying\Utilities\JoinFinder::findNecessaryJoins() has invalid type Doctrine\ORM\Mapping\ClassMetadataInfo.                                
  58     Parameter $classMetadata of method EDT\DqlQuerying\Utilities\JoinFinder::findNecessaryJoins() has invalid type Doctrine\ORM\Mapping\ClassMetadataInfo.                                
  93     Parameter $classMetadata of method EDT\DqlQuerying\Utilities\JoinFinder::findJoinsRecursive() has invalid type Doctrine\ORM\Mapping\ClassMetadataInfo.                                
  93     Parameter $classMetadata of method EDT\DqlQuerying\Utilities\JoinFinder::findJoinsRecursive() has invalid type Doctrine\ORM\Mapping\ClassMetadataInfo.                                
  100    Call to method getName() on an unknown class Doctrine\ORM\Mapping\ClassMetadataInfo.                                                                                                  
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                                                                                   
  100    Parameter #1 $name of static method EDT\DqlQuerying\Contracts\MappingException::disallowedToMany() expects class-string, mixed given.                                                 
  132    Call to method getName() on an unknown class Doctrine\ORM\Mapping\ClassMetadataInfo.                                                                                                  
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                                                                                   
  132    Part $classMetadata->getName() (mixed) of encapsed string cannot be cast to string.                                                                                                   
  154    Parameter $tableInfo of method EDT\DqlQuerying\Utilities\JoinFinder::createTableAlias() has invalid type Doctrine\ORM\Mapping\ClassMetadataInfo.                                      
  154    Parameter $tableInfo of method EDT\DqlQuerying\Utilities\JoinFinder::createTableAlias() has invalid type Doctrine\ORM\Mapping\ClassMetadataInfo.                                      
  156    Call to method getTableName() on an unknown class Doctrine\ORM\Mapping\ClassMetadataInfo.                                                                                             
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                                                                                   
  156    Part $tableInfo->getTableName() (mixed) of encapsed string cannot be cast to string.                                                                                                  
  166    Method EDT\DqlQuerying\Utilities\JoinFinder::getTargetClassMetadata() has invalid return type Doctrine\ORM\Mapping\ClassMetadataInfo.                                                 
  166    Method EDT\DqlQuerying\Utilities\JoinFinder::getTargetClassMetadata() has invalid return type Doctrine\ORM\Mapping\ClassMetadataInfo.                                                 
  166    Parameter $metadata of method EDT\DqlQuerying\Utilities\JoinFinder::getTargetClassMetadata() has invalid type Doctrine\ORM\Mapping\ClassMetadataInfo.                                 
  166    Parameter $metadata of method EDT\DqlQuerying\Utilities\JoinFinder::getTargetClassMetadata() has invalid type Doctrine\ORM\Mapping\ClassMetadataInfo.                                 
  169    Call to method getAssociationTargetClass() on an unknown class Doctrine\ORM\Mapping\ClassMetadataInfo.                                                                                
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                                                                                   
  170    Parameter #1 $className of method Doctrine\Persistence\Mapping\AbstractClassMetadataFactory<Doctrine\ORM\Mapping\ClassMetadata>::getMetadataFor() expects class-string, mixed given.  
  171    Class Doctrine\ORM\Mapping\ClassMetadataInfo not found.                                                                                                                               
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                                                                                   
  178    Call to method getName() on an unknown class Doctrine\ORM\Mapping\ClassMetadataInfo.                                                                                                  
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                                                                                   
  178    Parameter #2 $entityName of static method EDT\DqlQuerying\Contracts\MappingException::relationshipUnavailable() expects string, mixed given.                                          
  187    Parameter $classMetadata of method EDT\DqlQuerying\Utilities\JoinFinder::isToManyRelationship() has invalid type Doctrine\ORM\Mapping\ClassMetadataInfo.                              
  187    Parameter $classMetadata of method EDT\DqlQuerying\Utilities\JoinFinder::isToManyRelationship() has invalid type Doctrine\ORM\Mapping\ClassMetadataInfo.                              
  189    Call to method getAssociationMapping() on an unknown class Doctrine\ORM\Mapping\ClassMetadataInfo.                                                                                    
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                                                                                   
  191    Access to constant TO_MANY on an unknown class Doctrine\ORM\Mapping\ClassMetadataInfo.                                                                                                
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                                                                                   
  191    Cannot access offset 'type' on mixed.                                                                                                                                                 
  198    Parameter $classMetadata of method EDT\DqlQuerying\Utilities\JoinFinder::isRelationship() has invalid type Doctrine\ORM\Mapping\ClassMetadataInfo.                                    
  198    Parameter $classMetadata of method EDT\DqlQuerying\Utilities\JoinFinder::isRelationship() has invalid type Doctrine\ORM\Mapping\ClassMetadataInfo.                                    
  200    Call to method hasAssociation() on an unknown class Doctrine\ORM\Mapping\ClassMetadataInfo.                                                                                           
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                                                                                   
  200    Method EDT\DqlQuerying\Utilities\JoinFinder::isRelationship() should return bool but returns mixed.                                                                                   
  207    Parameter $classMetadata of method EDT\DqlQuerying\Utilities\JoinFinder::isAttribute() has invalid type Doctrine\ORM\Mapping\ClassMetadataInfo.                                       
  207    Parameter $classMetadata of method EDT\DqlQuerying\Utilities\JoinFinder::isAttribute() has invalid type Doctrine\ORM\Mapping\ClassMetadataInfo.                                       
  209    Call to method hasField() on an unknown class Doctrine\ORM\Mapping\ClassMetadataInfo.                                                                                                 
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                                                                                   
  209    Method EDT\DqlQuerying\Utilities\JoinFinder::isAttribute() should return bool but returns mixed.                                                                                      
 ------ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 

 ------ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 
  Line   dql/src/Utilities/QueryBuilderPreparer.php                                                                                                                                                      
 ------ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 
  65     Property EDT\DqlQuerying\Utilities\QueryBuilderPreparer::$mainClassMetadata has unknown class Doctrine\ORM\Mapping\ClassMetadataInfo as its type.                                               
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                                                                                             
  65     Property EDT\DqlQuerying\Utilities\QueryBuilderPreparer::$mainClassMetadata has unknown class Doctrine\ORM\Mapping\ClassMetadataInfo as its type.                                               
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                                                                                             
  97     Property EDT\DqlQuerying\Utilities\QueryBuilderPreparer::$mainClassMetadata (Doctrine\ORM\Mapping\ClassMetadataInfo<object>) does not accept Doctrine\ORM\Mapping\ClassMetadata.                
  166    Call to method getName() on an unknown class Doctrine\ORM\Mapping\ClassMetadataInfo.                                                                                                            
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                                                                                             
  166    Parameter #1 $from of method Doctrine\ORM\QueryBuilder::from() expects class-string, mixed given.                                                                                               
  184    Parameter #1 $parameters of method Doctrine\ORM\QueryBuilder::setParameters() expects Doctrine\Common\Collections\ArrayCollection<int, Doctrine\ORM\Query\Parameter>, array<int, mixed> given.  
  224    Call to method getTableName() on an unknown class Doctrine\ORM\Mapping\ClassMetadataInfo.                                                                                                       
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                                                                                             
  283    Parameter #2 $tableInfo of method EDT\DqlQuerying\Utilities\JoinFinder::createTableAlias() expects Doctrine\ORM\Mapping\ClassMetadataInfo<object>, Doctrine\ORM\Mapping\ClassMetadata given.    
  290    Call to method getTableName() on an unknown class Doctrine\ORM\Mapping\ClassMetadataInfo.                                                                                                       
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                                                                                             
  291    Parameter #2 $tableInfo of method EDT\DqlQuerying\Utilities\JoinFinder::createTableAlias() expects Doctrine\ORM\Mapping\ClassMetadataInfo<object>, Doctrine\ORM\Mapping\ClassMetadata given.    
  296    Parameter #3 $classMetadata of method EDT\DqlQuerying\Utilities\JoinFinder::findNecessaryJoins() expects Doctrine\ORM\Mapping\ClassMetadataInfo<object>,                                        
         Doctrine\ORM\Mapping\ClassMetadata|Doctrine\ORM\Mapping\ClassMetadataInfo<object> given.                                                                                                        
  298    Parameter #5 $tableAlias of method EDT\DqlQuerying\Utilities\JoinFinder::findNecessaryJoins() expects string, mixed given.                                                                      
  334    Part $entityAlias (mixed) of encapsed string cannot be cast to string.                                                                                                                          
 ------ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 

 [ERROR] Found 56 errors                                                                                                

Script phpstan analyse handling the phpstan event returned with error code 1
composer phpstan  16.81s user 0.85s system 525% cpu 3.363 total
dresslerdemos commented 4 months ago

https://github.com/slevomat/doctrine-orm/blob/master/UPGRADE.md

dependabot[bot] commented 3 months ago

Superseded by #140.