Skip to content

Commit 8577543

Browse files
authored
Update code standards to PHP 7.1+ (#75)
1 parent 620daba commit 8577543

File tree

3 files changed

+138
-65
lines changed

3 files changed

+138
-65
lines changed

composer.json

+13-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
{
2-
"name":"codeception/module-symfony",
3-
"description":"Codeception module for Symfony framework",
4-
"keywords":["codeception", "symfony"],
5-
"homepage":"https://codeception.com/",
6-
"type":"library",
7-
"license":"MIT",
8-
"authors":[
2+
"name": "codeception/module-symfony",
3+
"description": "Codeception module for Symfony framework",
4+
"keywords": ["codeception", "symfony"],
5+
"homepage": "https://codeception.com/",
6+
"type": "library",
7+
"license": "MIT",
8+
"authors": [
99
{
10-
"name":"Michael Bodnarchuk"
10+
"name": "Michael Bodnarchuk"
11+
},
12+
{
13+
"name": "Gustavo Nieves",
14+
"homepage": "https://medium.com/@ganieves"
1115
}
1216
],
1317
"minimum-stability": "RC",
@@ -25,7 +29,7 @@
2529
"codeception/module-sequence": "^1.0",
2630
"vlucas/phpdotenv": "^3.6 | ^4.1 | ^5.2"
2731
},
28-
"autoload":{
32+
"autoload": {
2933
"classmap": ["src/"]
3034
},
3135
"config": {

src/Codeception/Lib/Connector/Symfony.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
use Symfony\Component\HttpFoundation\Response;
1111
use Symfony\Component\HttpKernel\HttpKernelBrowser;
1212
use Symfony\Component\HttpKernel\Kernel;
13+
use function array_keys;
14+
use function class_alias;
15+
use function codecept_debug;
1316

1417
if (Kernel::VERSION_ID < 40300) {
1518
class_alias('Symfony\Component\HttpKernel\Client', 'Symfony\Component\HttpKernel\HttpKernelBrowser');
@@ -77,7 +80,7 @@ protected function doRequest($request): Response
7780
* are updated from service container before kernel shutdown
7881
* and injected into newly initialized container after kernel boot.
7982
*/
80-
public function rebootKernel()
83+
public function rebootKernel(): void
8184
{
8285
if ($this->container) {
8386
foreach (array_keys($this->persistentServices) as $serviceName) {

0 commit comments

Comments
 (0)