Skip to content

Instantly share code, notes, and snippets.

View goetas's full-sized avatar

Asmir Mustafic goetas

View GitHub Profile
@goetas
goetas / bench.php
Created July 9, 2014 06:30
PHP DOM XPath Test
<?php
$xml = new DOMDocument();
$xml->loadXML('
<a xmlns="http://www.aaa.bbb.cc/xx">
<b/>
<b xmlns:x="http://www.aaa.bbb.cc/xxyy">
<c xml:id="c" aa="a" bb="bb" xmlns:c="http://www.aaa.bbb.cc/xx">
<c:d/>
@goetas
goetas / keybase.md
Created May 3, 2018 15:04
keybase.md

Keybase proof

I hereby claim:

  • I am goetas on github.
  • I am goetas (https://keybase.io/goetas) on keybase.
  • I have a public key whose fingerprint is 252F 8F13 79E4 0F17 8DB7 52DE 5408 354D 09CC 64FC

To claim this, I am signing this object:

@goetas
goetas / chages.md
Last active September 23, 2019 15:37

Added

  • Method getConfiguration() was added to interface Doctrine\Migrations\Tools\Console\Helper\ConfigurationHelperInterface

Changed

  • The parameter $config of Doctrine\Migrations\Event\MigrationsEventArgs#__construct() changed from Doctrine\Migrations\Configuration\Configuration to a non-contravariant Doctrine\DBAL\Connection
  • The parameter $direction of Doctrine\Migrations\Event\MigrationsEventArgs#__construct() changed from string to a non-contravariant Doctrine\Migrations\Metadata\MigrationPlanList
  • The parameter $dryRun of Doctrine\Migrations\Event\MigrationsEventArgs#__construct() changed from bool to a non-contravariant Doctrine\Migrations\MigratorConfiguration
  • The parameter $config of Doctrine\Migrations\Event\MigrationsEventArgs#__construct() changed from Doctrine\Migrations\Configuration\Configuration to Doctrine\DBAL\Connection
  • The parameter $direction of Doctrine\Migrations\Event\MigrationsEventArgs#__construct() changed from string to `Doctrine\Migration
@goetas
goetas / deps-v2.svg
Last active September 22, 2019 10:51
Doctrine migrations dependencies
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@goetas
goetas / phpda.yml
Created March 7, 2020 19:41
Doctrine Migrations dependency analysis
mode: 'usage'
source: './lib'
filePattern: '*.php'
formatter: 'PhpDA\Writer\Strategy\Svg'
target: './complex-cycle.svg'
groupLength: 3
visitorOptions:
PhpDA\Parser\Visitor\Required\DeclaredNamespaceCollector: {minDepth: 2, sliceLength: 6, excludePattern: '/^((?!.*(Doctrine\\Migrations))|(?=.*Exception)).*$/'}
PhpDA\Parser\Visitor\Required\MetaNamespaceCollector: {minDepth: 2, sliceLength: 4, excludePattern: '/^((?!.*(Doctrine\\Migrations))|(?=.*Exception)).*$/'}
PhpDA\Parser\Visitor\Required\UsedNamespaceCollector: {minDepth: 2, sliceLength: 4, excludePattern: '/^((?!.*(Doctrine\\Migrations))|(?=.*Exception)).*$/'}