Fixed type error when using BladeCompiler::getRawPlaceholder(). (#3788)

Co-authored-by: 李铭昕 <715557344@qq.com>
This commit is contained in:
cmm 2021-07-07 20:49:19 +08:00 committed by GitHub
parent 416854c624
commit aa269a9d72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -82,3 +82,4 @@
- [#3692](https://github.com/hyperf/hyperf/pull/3692) Fixed bug that class proxies couldn't be included when building phar.
- [#3769](https://github.com/hyperf/hyperf/pull/3769) Fixed bug that `config-center` conflicts with `metrics`.
- [#3770](https://github.com/hyperf/hyperf/pull/3770) Fixed type error when using `Str::slug()`.
- [#3788](https://github.com/hyperf/hyperf/pull/3788) Fixed type error when using `BladeCompiler::getRawPlaceholder()`.

View File

@ -591,7 +591,7 @@ class BladeCompiler extends Compiler implements CompilerInterface
*/
protected function getRawPlaceholder($replace): string
{
return str_replace('#', $replace, '@__raw_block_#__@');
return str_replace('#', (string) $replace, '@__raw_block_#__@');
}
/**