Skip to content

Commit 30e0867

Browse files
committed
Merge branch '6.1' into 6.2
* 6.1: [Console] Fix `Helper::removeDecoration` hyperlink bug Guard scripts from being run in non-CLI contexts Guard scripts from being run in non-CLI contexts [Serializer] fixed traceable decoration priorities a readonly property must not be reported as being writable
2 parents dc04dcd + b79e586 commit 30e0867

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Resources/bin/check-unused-known-tags.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
* file that was distributed with this source code.
1010
*/
1111

12+
if ('cli' !== \PHP_SAPI) {
13+
throw new Exception('This script must be run from the command line.');
14+
}
15+
1216
require dirname(__DIR__, 6).'/vendor/autoload.php';
1317

1418
use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler\UnusedTagsPassUtils;

Resources/config/serializer_debug.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
return static function (ContainerConfigurator $container) {
1818
$container->services()
1919
->set('debug.serializer', TraceableSerializer::class)
20-
->decorate('serializer', null, 255)
20+
->decorate('serializer')
2121
->args([
2222
service('debug.serializer.inner'),
2323
service('serializer.data_collector'),

0 commit comments

Comments
 (0)