This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace data | |
{ | |
interface loader | |
{ | |
function dataNeedDataWithName(name $name); | |
} | |
interface loadableData |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace mail\view; | |
use | |
mail, | |
data | |
; | |
final class alert implements mail\view |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
interface dataProvider | |
{ | |
function dataConsumerIs(dataConsumer $dataConsuler); | |
} | |
interface dataConsumer | |
{ | |
function newData($data); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$httpClient = new \GuzzleHttp\Client; | |
$response = $httpClient->post('http://foo.bar', [ 'body' => [ 'username' => 'mageekguy', 'password' => 'A very strong password, isn\' it?', ], 'allow_redirects' => false, 'cookies' => true ]); | |
echo '<pre>'; | |
var_dump($response->getStatusCode(), $response->getHeaders()); | |
echo '</pre>'; | |
/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Je n'ai jamais pensé qu'il y avait une idée malsaine derrière la 2.0 (en réponse à https://twitter.com/mikaelrandy/status/566211744998387712) ; | |
2) Par contre, j'aurais aimé un peu plus "d'intelligence" (désolé, je n'ai pas trouvé d'autre mot) dans sa réalisation, d'autant que les 2 RM ont été partie prenante dans l'issue ayant remonté la BC, et que https://github.com/atoum/atoum/issues/426#issuecomment-71854938 ; | |
3) À la place de mauvaises excuses telle que https://twitter.com/mikaelrandy/status/566196864710897664, j'aurais aimé qu'on mette en œuvre ce qu'il faut pour éviter la diffusion d'une 2.0 qui ne rime à rien, parce que sortir une majeure est un signal très important pour l'utilisateur finale, et que beaucoup vont s'arrêter au fait que ça veut dire "BC break" alors qu'il n'en ait rien ; | |
4) J'aurais aimé que quelqu'un d'autre se charge d'une PR de trois lignes, parce que je fais déjà beaucoup et que, parfois, j'ai d'autres choses à faire (en réponse à https://twitter.com/mikaelrandy/status/5661972548 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Easy, just do: | |
$cookieComponents = \GuzzleHttp\Cookie\SetCookie::fromString($response->getHeader('Set-Cookie')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
abstract class phoneNumber | |
{ | |
private | |
$value | |
; | |
function __construct($value) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: | |
autoload: | |
'': %paths.base%/Tests/Functionals/Bootstrap | |
contexts: | |
- HttpContext: | |
baseUrl: 'http://foo.bar.lan' | |
suites: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class foo implements arrayAccess | |
{ | |
public $values; | |
function offsetSet($key, $value) | |
{ | |
var_dump($key); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
final class celsius | |
{ | |
private | |
$value | |
; | |
function __construct($value) | |
{ |