mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
Fix "Found a contradiction when evaluating $fullBundleName and trying to reconcile type 'string' to !string" bug pointed by Psalm
This commit is contained in:
@@ -85,16 +85,10 @@ class BundleTest extends BaseTestCase
|
||||
self::assertEquals($expected, Bundle::getBundleViewPath($viewPath, $bundleName, $extension));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $emptyValue Empty value, e.g. ""
|
||||
*
|
||||
* @throws IncorrectBundleNameException
|
||||
* @dataProvider provideEmptyValue
|
||||
*/
|
||||
public function testGetShortBundleNameUsingEmptyValue($emptyValue)
|
||||
public function testGetShortBundleNameUsingEmptyValue(): void
|
||||
{
|
||||
$this->expectException(IncorrectBundleNameException::class);
|
||||
Bundle::getShortBundleName($emptyValue);
|
||||
Bundle::getShortBundleName('');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user