在我们的生产网站中,我发现了 Sentry.io 的错误。
几个月以来,我每天都会遇到大约 50 次相同的错误,但我自己永远无法在本地、预生产甚至生产中重现它。
我不知道什么会抛出这个。我从未有客户向我报告过此错误。
有谁知道它可能是什么?
ErrorException: Uncaught Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The "kernel" service is synthetic, it needs to be set at boot time before it can be used. in /mnt/www/project/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php:334
Stack trace:
#0 /mnt/www/project/app/cache/prod/Container2xhx4bk/appProdProjectContainer.php(11988): Symfony\Component\DependencyInjection\Container->get('kernel')
#1 /mnt/www/project/app/cache/prod/Container2xhx4bk/appProdProjectContainer.php(12085): Container2xhx4bk\appProdProjectContainer->getTemplating_LocatorService()
#2 /mnt/www/project/app/cache/prod/Container2xhx4bk/appProdProjectContainer.php(9670): Container2xhx4bk\appProdProjectContainer->getTwig_LoaderService()
#3 /mnt/www/project/app/cache/prod/Container2xhx4bk/appProdProjectContainer.php(9660): Container2xhx4bk\appProdProjectContainer->getTwigService()
#4 /mnt/www/project/ap
#1 vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(334): handleFatalError
Run Code Online (Sandbox Code Playgroud) 关联数组 => 应该与 PHP-CS-Fixer 对齐吗?
$array = [
1 => 'a',
'1' => 'b',
1.5 => 'c',
true => 'd',
];
Run Code Online (Sandbox Code Playgroud)
或者
$array = [
1 => 'a',
'1' => 'b',
1.5 => 'c',
true => 'd',
];
Run Code Online (Sandbox Code Playgroud)
我尝试按照这里的解释:如何将表格单元格包装在全宽度表格中的最大宽度
但我不能做一些工作来包装我的"xxxxxxxxxxxxx"线.
<table class="my-list table table-bordered table-hover">
<tbody>
<tr>
<th>User id</th>
<th>User name</th>
<th>Type</th>
<th>Id</th>
<th>Ad content</th>
<th>Created at</th>
</tr>
<tr>
<td>66666</td>
<td>John Smith</td>
<td>type1</td>
<td>99999</td>
<td>
<div>
Good content with words and real sentences.
</div>
</td>
<td>2015-09-02</td>
</tr>
<tr>
<td>777777</td>
<td>Martin Isabelle</td>
<td>type2</td>
<td>888888</td>
<td>
<div>
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
</div>
</td>
<td>2015-09-02</td>
</tr>
</tbody>
</table>
Run Code Online (Sandbox Code Playgroud)