mirror of
https://github.com/werkraum-media/thuecat.git
synced 2024-12-05 03:26:13 +01:00
Fulfill phpstan requirements
Ensure proper annotation and usage of assertNull.
This commit is contained in:
parent
5e5c019704
commit
c73bf1c53a
7 changed files with 8 additions and 9 deletions
|
@ -51,7 +51,7 @@ class Offer
|
|||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
* @return Offer
|
||||
*/
|
||||
public static function createFromArray(array $rawData)
|
||||
{
|
||||
|
|
|
@ -65,7 +65,7 @@ class OpeningHour
|
|||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
* @return OpeningHour
|
||||
*/
|
||||
public static function createFromArray(array $rawData)
|
||||
{
|
||||
|
|
|
@ -65,7 +65,7 @@ class Price
|
|||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
* @return Price
|
||||
*/
|
||||
public static function createFromArray(array $rawData)
|
||||
{
|
||||
|
|
|
@ -103,6 +103,6 @@ class RegistryTest extends TestCase
|
|||
|
||||
$result = $subject->getConverterBasedOnType(['thuecat:Entity']);
|
||||
|
||||
self::assertSame(null, $result);
|
||||
self::assertNull($result);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -304,7 +304,7 @@ class OpeningHoursTest extends TestCase
|
|||
self::assertSame('', $result[0]['opens']);
|
||||
self::assertSame('', $result[0]['closes']);
|
||||
self::assertSame([], $result[0]['daysOfWeek']);
|
||||
self::assertSame(null, $result[0]['from']);
|
||||
self::assertSame(null, $result[0]['through']);
|
||||
self::assertNull($result[0]['from']);
|
||||
self::assertNull($result[0]['through']);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -87,8 +87,7 @@ class EntityCollectionTest extends TestCase
|
|||
$subject = new EntityCollection();
|
||||
$subject->add($entityWithTranslation->reveal());
|
||||
|
||||
self::assertSame(
|
||||
null,
|
||||
self::assertNull(
|
||||
$subject->getDefaultLanguageEntity()
|
||||
);
|
||||
}
|
||||
|
|
|
@ -68,7 +68,7 @@ class RegistryTest extends TestCase
|
|||
$subject = new Registry();
|
||||
|
||||
$result = $subject->getProviderForConfiguration($configuration->reveal());
|
||||
self::assertSame(null, $result);
|
||||
self::assertNull($result);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue