-
Notifications
You must be signed in to change notification settings - Fork 2
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
Upgrade to Symfony4.4 LTS with PHP7.2 support #307
Conversation
30e6de9
to
bdb35a7
Compare
a274984
to
8b30a29
Compare
7b8a2df
to
b4c690a
Compare
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.
Quite the change! I'm going to give this a functional testrun now. This may result in additional feedback. Most of my findings are cosmetic, but also touch on some more serious points.
One of the things I noticed in the updates of the tests is that almost none of the expected exception classes are 'imported'.
bin/doctrine-migrations-diff.sh
Outdated
php72 ./bin/console do:mi:di --em=middleware --filter-expression='~^(?!event_stream).*$~' | ||
sleep 1 | ||
php72 ./bin/console do:mi:di --em=gateway |
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.
I think that this change in behaviour (replacing the dedicated GW/MW doctrine console actions) should be documented in a dev readme.
Also consider not using the abbreviated calling of the console actions. Doesn't hurt either, but looks somewhat messy IMHO.
Finally, the file is missing a newline at the end of the file.
#controllers: | ||
# resource: ../../src/Controller/ | ||
# type: annotation | ||
# | ||
#kernel: | ||
# resource: ../../src/Kernel.php | ||
# type: annotation |
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.
Can this file be removed?
@@ -0,0 +1,25 @@ | |||
<?php | |||
|
|||
use Symfony\Component\Dotenv\Dotenv; |
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.
This import is currently not used
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.
I would prefer to manage it with Symfony itself.
// $product = new Product(); | ||
// $manager->persist($product); |
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.
Perhaps remove these commented lines?
@@ -1,10 +1,9 @@ | |||
<!DOCTYPE html> | |||
<html> | |||
<head> | |||
<meta charset="UTF-8" /> | |||
<meta charset="UTF-8"> |
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.
👍
* @dataProvider invalidConstructorArgumentsProvider | ||
*/ | ||
public function invalid_types_are_rejected_during_construction($arguments) | ||
{ | ||
$this->expectException(\Surfnet\Stepup\Exception\InvalidArgumentException::class); |
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.
All $this->expectException
Exception references [sh/c]ould be 'imported'
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.
I know but is was easier to replace it without refactoring all the code. Because it's in the test code I didn't bother to refactor it.
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.
The README.md also needs to be updated. This states the application can be run using PHP 5.6. As of now that is no longer true.
namespace Surfnet\DataFixtures; | ||
|
||
use Doctrine\Bundle\FixturesBundle\Fixture; | ||
use Doctrine\Common\Persistence\ObjectManager; |
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.
Using the ObjectManager from Doctrine\Common\Persistence\
is incompatible with super
"doctrine/orm": "~2.5", | ||
"sensio/distribution-bundle": "~5.0", | ||
"sensio/framework-extra-bundle": "~3.0", | ||
"ext-json": "*", |
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.
ext-openssl
and ext-pdo
also are required extensions. Please add those to the require
section
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.
It's of out of scope for the upgrade when I'm touching the code when working on other features I'll boyscout this.
80b9450
to
3cb1bdc
Compare
5078304
to
4994d46
Compare
Mcrypt is deprecated
4994d46
to
87f6124
Compare
Some changes were added after functional testing |
https://www.pivotaltracker.com/story/show/174036854