-
Notifications
You must be signed in to change notification settings - Fork 11
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
PHP 8 & Symfony 6 #1153
PHP 8 & Symfony 6 #1153
Conversation
Kudos, SonarCloud Quality Gate passed!
|
Ci is nog niet blij :( |
649e802
to
a810a62
Compare
De UserInterface is veranderd, de method 'getUsername' is veranderd naar de method 'getUserIdentifier'.
De constructor signature van UsernamePasswordToken is veranderd
a810a62
to
5b914e7
Compare
Verander alle routing annotations naar attributes
Hierbij is ook de manier waarop de app geladen wordt veranderd, configuratie.include.php wordt op dit moment niet geladen TODO: We moeten deze hele logica veranderen om een beetje overeen te komen met best practices.
@@ -102,7 +102,6 @@ package-lock.json | |||
###< phpunit/phpunit ### | |||
|
|||
###> symfony/phpunit-bridge ### | |||
.phpunit |
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.
klopt dit wel?
.idea/php.xml
Outdated
@@ -222,7 +222,7 @@ | |||
<path value="$PROJECT_DIR$/vendor/twig/string-extra" /> | |||
</include_path> | |||
</component> | |||
<component name="PhpProjectSharedConfiguration" php_language_level="7.3"> | |||
<component name="PhpProjectSharedConfiguration" php_language_level="8.1"> |
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.
Deze moet ook nog even naar 8.2
@@ -1,16 +1,16 @@ | |||
FROM php:7.3-apache | |||
FROM php:8.1-apache |
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.
FIXME: 8.2
{ | ||
public function __construct( | ||
private readonly EntityManagerInterface $entityManager, | ||
private readonly ObjectNormalizer $normalizer | ||
) { | ||
} | ||
|
||
public function getSupportedTypes(?string $format): array { |
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.
Op dit moment de meest veilige optie, ik weet niet hoe het caching mechanisme precies werkt
@@ -1,11 +1,6 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!-- https://phpunit.readthedocs.io/en/latest/configuration.html --> | |||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="tests/bootstrap.php"> | |||
<coverage processUncoveredFiles="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.
Coverage is wel handig om te hebben, we moeten maar even kijken hoe we dat het best kunnen configureren
@@ -12,3 +12,7 @@ | |||
} elseif (method_exists(Dotenv::class, 'bootEnv')) { | |||
(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env'); | |||
} | |||
|
|||
if ($_SERVER['APP_DEBUG']) { |
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.
Waar is dit voor nodig?
In plaats van een flash message, log een error. TODO: Gebrek aan LDAP minder problematisch maken
|
5db5499
to
e0fe5f4
Compare
Whoops, dan moeten we natuurlijk ook ervoor zorgen dat CI de screenshots oppakt...
844d1aa
to
e63b46b
Compare
Verwijder git branch in logs, die gebruiken we toch niet
e63b46b
to
702a752
Compare
De twig alias bestond al, maar was private. Deze config werkte dus niet waardoor het niet gegarandeerd is dat twig ook in de container zit. Fix dit door een nieuwe publieke alias `csr.hack.twig` te maken (want het is een hack). Dit zou niet nodig moeten zijn en kan weggegooid worden ~wanneer~ als we de ContainerFacade voorgoed uit de code verbannen.
|
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.
Alles is clear voor de upgrade
Revert "Merge pull request #1153 from csrdelft/php8-symfony6"
Zodra de stek naar PHP 8 kan natuurlijk