-
-
Notifications
You must be signed in to change notification settings - Fork 424
drop PHP 7.x support #1122
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
drop PHP 7.x support #1122
Changes from 15 commits
a692d64
7b9ef40
514ae73
08ba7b2
b35ab23
e257e7f
21f4862
2417e8a
53d2b55
d99e159
5d92164
71830c4
4760a70
f868c37
faa2ca8
76e9e1f
699c29d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ environment: | |
TEST_DATABASE_DSN: mysql://root:[email protected]:3306/test_maker | ||
matrix: | ||
- dependencies: highest | ||
php_ver_target: 7.2.5 | ||
php_ver_target: 8.0.0 | ||
|
||
install: | ||
- ps: Set-Service wuauserv -StartupType Manual | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,7 +145,7 @@ public function doesClassUsesAttributes(string $className): bool | |
|
||
public function isDoctrineSupportingAttributes(): bool | ||
{ | ||
return $this->isDoctrineInstalled() && $this->attributeMappingSupport && $this->phpCompatUtil->canUseAttributes(); | ||
return $this->isDoctrineInstalled() && $this->attributeMappingSupport; | ||
} | ||
|
||
Comment on lines
146
to
150
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We will handle bringing doctrine related makers up to PHP8 standards in a separate PR to avoid too much bloat in this one. |
||
public function getEntitiesForAutocomplete(): array | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,23 +45,18 @@ | |
*/ | ||
final class MakeEntity extends AbstractMaker implements InputAwareMakerInterface | ||
{ | ||
private $fileManager; | ||
private $doctrineHelper; | ||
private $generator; | ||
private $entityClassGenerator; | ||
private $phpCompatUtil; | ||
private Generator $generator; | ||
private EntityClassGenerator $entityClassGenerator; | ||
private PhpCompatUtil $phpCompatUtil; | ||
|
||
public function __construct( | ||
FileManager $fileManager, | ||
DoctrineHelper $doctrineHelper, | ||
private FileManager $fileManager, | ||
private DoctrineHelper $doctrineHelper, | ||
string $projectDirectory = null, | ||
Generator $generator = null, | ||
EntityClassGenerator $entityClassGenerator = null, | ||
PhpCompatUtil $phpCompatUtil = null | ||
) { | ||
$this->fileManager = $fileManager; | ||
$this->doctrineHelper = $doctrineHelper; | ||
|
||
if (null !== $projectDirectory) { | ||
@trigger_error('The $projectDirectory constructor argument is no longer used since 1.41.0', \E_USER_DEPRECATED); | ||
} | ||
|
@@ -877,10 +872,6 @@ private function doesEntityUseAnnotationMapping(string $className): bool | |
/** @legacy Drop when Annotations are no longer supported */ | ||
private function doesEntityUseAttributeMapping(string $className): bool | ||
{ | ||
if (!$this->phpCompatUtil->canUseAttributes()) { | ||
return false; | ||
} | ||
|
||
Comment on lines
872
to
-883
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Handled under a separate PR dedicated to doctrine. |
||
if (!class_exists($className)) { | ||
$otherClassMetadatas = $this->doctrineHelper->getMetadata(Str::getNamespace($className).'\\', true); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests failing, looks like we may need to bump this to 8.0.SOMETHING that actually works, which is fine.