Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0ba9401

Browse files
committed
refacto: Fabbot's required fixes
1 parent b26207d commit 0ba9401

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Symfony/Component/Serializer/Annotation/Since.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ class Since
3131
public function __construct(array $data)
3232
{
3333
if (!isset($data['value'])) {
34-
throw new InvalidArgumentException(sprintf('Parameter of annotation "%s" should be set.', \get_class($this)));
34+
throw new InvalidArgumentException(sprintf('Parameter of annotation "%s" should be set.', static::class));
3535
}
3636

3737
if (!\is_string($data['value']) || empty($data['value'])) {
38-
throw new InvalidArgumentException(sprintf('Parameter of annotation "%s" must be a non-empty string.', \get_class($this)));
38+
throw new InvalidArgumentException(sprintf('Parameter of annotation "%s" must be a non-empty string.', static::class));
3939
}
4040

4141
$this->version = $data['value'];

src/Symfony/Component/Serializer/Annotation/Until.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ class Until
3131
public function __construct(array $data)
3232
{
3333
if (!isset($data['value'])) {
34-
throw new InvalidArgumentException(sprintf('Parameter of annotation "%s" should be set.', \get_class($this)));
34+
throw new InvalidArgumentException(sprintf('Parameter of annotation "%s" should be set.', static::class));
3535
}
3636

3737
if (!\is_string($data['value']) || empty($data['value'])) {
38-
throw new InvalidArgumentException(sprintf('Parameter of annotation "%s" must be a non-empty string.', \get_class($this)));
38+
throw new InvalidArgumentException(sprintf('Parameter of annotation "%s" must be a non-empty string.', static::class));
3939
}
4040

4141
$this->version = $data['value'];

src/Symfony/Component/Serializer/Tests/Mapping/Loader/AnnotationLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
use Symfony\Component\Serializer\Tests\Fixtures\AbstractDummy;
2121
use Symfony\Component\Serializer\Tests\Fixtures\AbstractDummyFirstChild;
2222
use Symfony\Component\Serializer\Tests\Fixtures\AbstractDummySecondChild;
23-
use Symfony\Component\Serializer\Tests\Fixtures\IgnoreDummy;
2423
use Symfony\Component\Serializer\Tests\Fixtures\AbstractDummyThirdChild;
24+
use Symfony\Component\Serializer\Tests\Fixtures\IgnoreDummy;
2525
use Symfony\Component\Serializer\Tests\Mapping\TestClassMetadataFactory;
2626

2727
/**

0 commit comments

Comments
 (0)