Fix "Found a contradiction when evaluating $fullBundleName and trying to reconcile type 'string' to !string" bug pointed by Psalm

This commit is contained in:
Meritoo
2019-06-20 18:58:20 +02:00
parent 3b81d0d932
commit 5678b5b22a
2 changed files with 3 additions and 13 deletions

View File

@@ -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('');
}
/**