Skip to content

Commit bda66b7

Browse files
committed
fix cs
Issue related to php-cs-fixer: PHP-CS-Fixer/PHP-CS-Fixer#4921
1 parent 6c2ba32 commit bda66b7

File tree

7 files changed

+11
-34
lines changed

7 files changed

+11
-34
lines changed

.php_cs.dist

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,16 @@ return PhpCsFixer\Config::create()
108108
'property',
109109
],
110110
],
111-
'void_return' => false, // BC breaks; to be done in API Platform 3.0
111+
'void_return' => false, // BC breaks; to be done in API Platform 3.0,
112+
// removed get_class_this see https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/4921
113+
'function_to_constant' => [
114+
'functions' => [
115+
'get_called_class',
116+
'get_class',
117+
'php_sapi_name',
118+
'phpversion',
119+
'pi'
120+
]
121+
]
112122
])
113123
->setFinder($finder);

src/Annotation/ApiResource.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,6 @@ final class ApiResource
208208
/**
209209
* @see https://api-platform.com/docs/core/mercure
210210
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
211-
*
212-
* @var mixed
213211
*/
214212
private $mercure;
215213

@@ -384,8 +382,6 @@ final class ApiResource
384382
/**
385383
* @see https://api-platform.com/docs/core/validation/#using-validation-groups
386384
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
387-
*
388-
* @var mixed
389385
*/
390386
private $validationGroups;
391387

src/Annotation/AttributesHydratorTrait.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@
1010
*/
1111

1212
declare(strict_types=1);
13-
/*
14-
* This file is part of the API Platform project.
15-
*
16-
* (c) Kévin Dunglas <[email protected]>
17-
*
18-
* For the full copyright and license information, please view the LICENSE
19-
* file that was distributed with this source code.
20-
*/
2113

2214
namespace ApiPlatform\Core\Annotation;
2315

src/Bridge/Symfony/Bundle/Test/BrowserKitAssertionsTrait.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@
1111

1212
declare(strict_types=1);
1313

14-
/*
15-
* This file is part of the Symfony package.
16-
*
17-
* (c) Fabien Potencier <[email protected]>
18-
*
19-
* For the full copyright and license information, please view the LICENSE
20-
* file that was distributed with this source code.
21-
*/
22-
2314
namespace ApiPlatform\Core\Bridge\Symfony\Bundle\Test;
2415

2516
use PHPUnit\Framework\Constraint\LogicalAnd;

tests/Bridge/Symfony/Validator/Exception/ValidationExceptionTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@
1010
*/
1111

1212
declare(strict_types=1);
13-
/*
14-
* This file is part of the API Platform project.
15-
*
16-
* (c) Kévin Dunglas <[email protected]>
17-
*
18-
* For the full copyright and license information, please view the LICENSE
19-
* file that was distributed with this source code.
20-
*/
2113

2214
namespace ApiPlatform\Core\Tests\Bridge\Symfony\Validator\Exception;
2315

tests/Fixtures/TestBundle/Document/ContainNonResource.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
class ContainNonResource
3535
{
3636
/**
37-
* @var mixed
38-
*
3937
* @ODM\Id(strategy="INCREMENT", type="integer")
4038
*
4139
* @Groups("contain_non_resource")

tests/Fixtures/TestBundle/Entity/ContainNonResource.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
class ContainNonResource
3535
{
3636
/**
37-
* @var mixed
38-
*
3937
* @ORM\Column(type="integer")
4038
* @ORM\Id
4139
* @ORM\GeneratedValue(strategy="AUTO")

0 commit comments

Comments
 (0)