Nicolas Grekas - nicolas.grekas, gmail.com
17 June 2011 - Last updated on 3 sept. 2011
Not updated any more on this gist. See:
Nicolas Grekas - nicolas.grekas, gmail.com
17 June 2011 - Last updated on 3 sept. 2011
Not updated any more on this gist. See:
<?php /****************** vi: set fenc=utf-8 ts=4 sw=4 et: ***************** | |
* | |
* Copyright : (C) 2011 Nicolas Grekas. All rights reserved. | |
* Email : p@tchwork.org | |
* License : http://www.gnu.org/licenses/lgpl.txt GNU/LGPL | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU Lesser General Public License as | |
* published by the Free Software Foundation, either version 3 of the | |
* License, or (at your option) any later version. |
Failed asserting that exception of type "UnserializationFailedException" matches expected exception "DomainException". Message was: "An Exception was thrown during unserialization" at src/Symfony/Component/Cache/Marshaller/DefaultMarshaller.php:96 src/Symfony/Component/Cache/Marshaller/DefaultMarshaller.php:74 src/Symfony/Component/Cache/Tests/Marshaller/DefaultMarshallerTest.php:62
Failed asserting that exception of type "UnserializationFailedException" matches expected exception "Symfony\Component\Messenger\Exception\MessageDecodingFailedException". Message was: "An Exception was thrown during unserialization" at src/Symfony/Component/Messenger/Transport/Serialization/PhpSerializer.php:78 src/Symfony/Component/Messenger/Transport/Serialization/PhpSerializer.php:54
diff --git a/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php b/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php | |
index 003680a5c0..e6b0265a45 100644 | |
--- a/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php | |
+++ b/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php | |
@@ -95,21 +95,21 @@ class Deprecation | |
break; | |
} | |
} | |
if (!isset($line['object']) && !isset($line['class'])) { |
<?php | |
/* | |
* This file is part of the Symfony package. | |
* | |
* (c) Fabien Potencier <fabien@symfony.com> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
<?php /****************** vi: set fenc=utf-8 ts=4 sw=4 et: ***************** | |
* | |
* Copyright : (C) 2012 Nicolas Grekas. All rights reserved. | |
* Email : p@tchwork.org | |
* License : http://apache.org/licenses/LICENSE-2.0 | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the Apache License version 2. | |
* | |
***************************************************************************/ |
<?php | |
class Ulid | |
{ | |
private static $time = -1; | |
private static $rand = []; | |
public function generate(bool $lowercase = false) | |
{ | |
if (\PHP_INT_SIZE !== 8) { |
<?php | |
require 'vendor/autoload.php'; | |
$start = microtime(true); | |
/* GUZZLE * / | |
$client = new GuzzleHttp\Client(); | |
$promises = []; |
parameters: | |
env(SECRETS_FILE): .secrets.php | |
services: | |
# default configuration for services in *this* file | |
_defaults: | |
autowire: true # Automatically injects dependencies in your services. | |
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc. | |
bind: | |
$someSecret: '%env(key:KEY3:require:SECRETS_FILE)%' |