Fix client generate replace of occurence in php files
This commit is contained in:
parent
00639792c4
commit
9118e43452
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ class GenerateCrmClient extends Command
|
|||
// replace namespace top level
|
||||
$pos = strpos($fContent, $search);
|
||||
if ($pos !== false) {
|
||||
File::put($source, substr_replace($fContent, $replace, $pos, strlen($search)));
|
||||
File::put($source, \str_replace($search, $replace, $fContent));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue