Skip to content

Commit

Permalink
Test should not depend on mbstring module
Browse files Browse the repository at this point in the history
  • Loading branch information
curry684 committed Dec 21, 2024
1 parent e5ff5b8 commit 2a0ca61
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class CustomPascalNamingStrategy implements NamingStrategy
*/
public function classToTableName(string $className): string
{
if (false !== mb_strpos($className, '\\')) {
return mb_substr($className, mb_strrpos($className, '\\') + 1);
if (false !== strpos($className, '\\')) {
return substr($className, strrpos($className, '\\') + 1);
}

return $className;
Expand All @@ -37,7 +37,7 @@ public function classToTableName(string $className): string
*/
public function propertyToColumnName(string $propertyName, ?string $className = null): string
{
if (null !== $className && mb_strtolower($propertyName) == mb_strtolower($this->classToTableName($className)) . 'id') {
if (null !== $className && strtolower($propertyName) == strtolower($this->classToTableName($className)) . 'id') {
return 'Id';
}

Expand Down

0 comments on commit 2a0ca61

Please sign in to comment.