mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
BaseType::isCorrectType() method > make static
This commit is contained in:
@@ -94,7 +94,7 @@ class TestService
|
||||
*/
|
||||
public function getTranslatedType($type)
|
||||
{
|
||||
if ((new TestType())->isCorrectType($type)) {
|
||||
if (TestType::isCorrectType($type)) {
|
||||
return ucfirst(str_replace('_', ' ', $type));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user