mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-29 18:27:44 +08:00
Fixed type error when using BladeCompiler::getRawPlaceholder()
. (#3788)
Co-authored-by: 李铭昕 <715557344@qq.com>
This commit is contained in:
parent
416854c624
commit
aa269a9d72
@ -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()`.
|
||||
|
@ -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_#__@');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user