@@ -201,7 +201,7 @@ public function activate(Composer $composer, IOInterface $io): void
201201 // that way, we are sure to use all files from the same version.
202202 foreach (new RecursiveIteratorIterator (new RecursiveDirectoryIterator (\dirname (__DIR__ , 1 ), FilesystemIterator::SKIP_DOTS )) as $ file ) {
203203 /** @var \SplFileInfo $file */
204- if (\mb_substr ($ file ->getFilename (), -4 ) === '.php ' ) {
204+ if (\substr ($ file ->getFilename (), -4 ) === '.php ' ) {
205205 require_once $ file ;
206206 }
207207 }
@@ -743,7 +743,7 @@ public function whatProvides(Pool $pool, $name, $bypassFilters = false)
743743 }, clone $ pool , $ pool )();
744744
745745 foreach ($ event ->getRequest ()->getJobs () as $ job ) {
746- if ($ job ['cmd ' ] !== 'install ' || \mb_strpos ($ job ['packageName ' ], '/ ' ) === false ) {
746+ if ($ job ['cmd ' ] !== 'install ' || \strpos ($ job ['packageName ' ], '/ ' ) === false ) {
747747 continue ;
748748 }
749749
@@ -756,7 +756,7 @@ public function whatProvides(Pool $pool, $name, $bypassFilters = false)
756756 foreach ($ pool ->whatProvides ($ packageName , $ constraint , true ) as $ package ) {
757757 /** @var \Composer\Package\Link $link */
758758 foreach (\array_merge ($ package ->getRequires (), $ package ->getConflicts (), $ package ->getReplaces ()) as $ link ) {
759- if (isset ($ listed [$ link ->getTarget ()]) || \mb_strpos ($ link ->getTarget (), '/ ' ) === false ) {
759+ if (isset ($ listed [$ link ->getTarget ()]) || \strpos ($ link ->getTarget (), '/ ' ) === false ) {
760760 continue ;
761761 }
762762
@@ -838,7 +838,7 @@ private function addLegacyTags(IOInterface $io, array $requires, LegacyTagsManag
838838 continue ;
839839 }
840840
841- if (\mb_strpos ($ name , '/ ' ) === false ) {
841+ if (\strpos ($ name , '/ ' ) === false ) {
842842 $ io ->writeError (\sprintf ('Constrain [%s] skipped, package name [%s] without a slash is not supported ' , $ version , $ name ));
843843
844844 continue ;
0 commit comments