Update dependencies and phpstan (#383)

This commit is contained in:
Arkadiusz Kondas 2019-05-14 22:43:08 +02:00 committed by GitHub
parent b500f0b648
commit 3baf1520e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 196 additions and 166 deletions

343
composer.lock generated
View File

@ -170,16 +170,16 @@
}, },
{ {
"name": "doctrine/annotations", "name": "doctrine/annotations",
"version": "v1.6.0", "version": "v1.6.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/doctrine/annotations.git", "url": "https://github.com/doctrine/annotations.git",
"reference": "c7f2050c68a9ab0bdb0f98567ec08d80ea7d24d5" "reference": "53120e0eb10355388d6ccbe462f1fea34ddadb24"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/doctrine/annotations/zipball/c7f2050c68a9ab0bdb0f98567ec08d80ea7d24d5", "url": "https://api.github.com/repos/doctrine/annotations/zipball/53120e0eb10355388d6ccbe462f1fea34ddadb24",
"reference": "c7f2050c68a9ab0bdb0f98567ec08d80ea7d24d5", "reference": "53120e0eb10355388d6ccbe462f1fea34ddadb24",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -234,7 +234,7 @@
"docblock", "docblock",
"parser" "parser"
], ],
"time": "2017-12-06T07:11:42+00:00" "time": "2019-03-25T19:12:02+00:00"
}, },
{ {
"name": "doctrine/inflector", "name": "doctrine/inflector",
@ -415,16 +415,16 @@
}, },
{ {
"name": "friendsofphp/php-cs-fixer", "name": "friendsofphp/php-cs-fixer",
"version": "v2.14.2", "version": "v2.15.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git",
"reference": "ff401e58261ffc5934a58f795b3f95b355e276cb" "reference": "adfab51ae979ee8b0fcbc55aa231ec2786cb1f91"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/ff401e58261ffc5934a58f795b3f95b355e276cb", "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/adfab51ae979ee8b0fcbc55aa231ec2786cb1f91",
"reference": "ff401e58261ffc5934a58f795b3f95b355e276cb", "reference": "adfab51ae979ee8b0fcbc55aa231ec2786cb1f91",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -452,10 +452,10 @@
"mikey179/vfsstream": "^1.6", "mikey179/vfsstream": "^1.6",
"php-coveralls/php-coveralls": "^2.1", "php-coveralls/php-coveralls": "^2.1",
"php-cs-fixer/accessible-object": "^1.0", "php-cs-fixer/accessible-object": "^1.0",
"php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.0.1", "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.1",
"php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.0.1", "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.1",
"phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1", "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1",
"phpunitgoodpractices/traits": "^1.5.1", "phpunitgoodpractices/traits": "^1.8",
"symfony/phpunit-bridge": "^4.0" "symfony/phpunit-bridge": "^4.0"
}, },
"suggest": { "suggest": {
@ -468,6 +468,11 @@
"php-cs-fixer" "php-cs-fixer"
], ],
"type": "application", "type": "application",
"extra": {
"branch-alias": {
"dev-master": "2.15-dev"
}
},
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"PhpCsFixer\\": "src/" "PhpCsFixer\\": "src/"
@ -499,20 +504,20 @@
} }
], ],
"description": "A tool to automatically fix PHP code style", "description": "A tool to automatically fix PHP code style",
"time": "2019-02-17T17:44:13+00:00" "time": "2019-05-06T07:13:51+00:00"
}, },
{ {
"name": "illuminate/contracts", "name": "illuminate/contracts",
"version": "v5.8.4", "version": "v5.8.17",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/illuminate/contracts.git", "url": "https://github.com/illuminate/contracts.git",
"reference": "3e3a9a654adbf798e05491a5dbf90112df1effde" "reference": "acd524087bcebcc0979748e84ccc0876395ae497"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/illuminate/contracts/zipball/3e3a9a654adbf798e05491a5dbf90112df1effde", "url": "https://api.github.com/repos/illuminate/contracts/zipball/acd524087bcebcc0979748e84ccc0876395ae497",
"reference": "3e3a9a654adbf798e05491a5dbf90112df1effde", "reference": "acd524087bcebcc0979748e84ccc0876395ae497",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -543,20 +548,20 @@
], ],
"description": "The Illuminate Contracts package.", "description": "The Illuminate Contracts package.",
"homepage": "https://laravel.com", "homepage": "https://laravel.com",
"time": "2019-02-18T18:37:54+00:00" "time": "2019-05-14T10:54:47+00:00"
}, },
{ {
"name": "illuminate/support", "name": "illuminate/support",
"version": "v5.8.4", "version": "v5.8.17",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/illuminate/support.git", "url": "https://github.com/illuminate/support.git",
"reference": "07062f5750872a31e086ff37a7c50ac18b8c417c" "reference": "128c6aaa1599811a04fd10c2d68e1213e433da3f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/illuminate/support/zipball/07062f5750872a31e086ff37a7c50ac18b8c417c", "url": "https://api.github.com/repos/illuminate/support/zipball/128c6aaa1599811a04fd10c2d68e1213e433da3f",
"reference": "07062f5750872a31e086ff37a7c50ac18b8c417c", "reference": "128c6aaa1599811a04fd10c2d68e1213e433da3f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -604,7 +609,7 @@
], ],
"description": "The Illuminate Support package.", "description": "The Illuminate Support package.",
"homepage": "https://laravel.com", "homepage": "https://laravel.com",
"time": "2019-03-12T13:17:00+00:00" "time": "2019-05-14T13:37:34+00:00"
}, },
{ {
"name": "jean85/pretty-package-versions", "name": "jean85/pretty-package-versions",
@ -798,16 +803,16 @@
}, },
{ {
"name": "myclabs/deep-copy", "name": "myclabs/deep-copy",
"version": "1.8.1", "version": "1.9.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/myclabs/DeepCopy.git", "url": "https://github.com/myclabs/DeepCopy.git",
"reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8" "reference": "e6828efaba2c9b79f4499dae1d66ef8bfa7b2b72"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8", "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/e6828efaba2c9b79f4499dae1d66ef8bfa7b2b72",
"reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8", "reference": "e6828efaba2c9b79f4499dae1d66ef8bfa7b2b72",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -842,20 +847,20 @@
"object", "object",
"object graph" "object graph"
], ],
"time": "2018-06-11T23:09:50+00:00" "time": "2019-04-07T13:18:21+00:00"
}, },
{ {
"name": "nesbot/carbon", "name": "nesbot/carbon",
"version": "2.16.0", "version": "2.17.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/briannesbitt/Carbon.git", "url": "https://github.com/briannesbitt/Carbon.git",
"reference": "dd16fedc022180ea4292a03aabe95e9895677911" "reference": "96acbc0c03782e8115156dd4dd8b736267155066"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/dd16fedc022180ea4292a03aabe95e9895677911", "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/96acbc0c03782e8115156dd4dd8b736267155066",
"reference": "dd16fedc022180ea4292a03aabe95e9895677911", "reference": "96acbc0c03782e8115156dd4dd8b736267155066",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -865,9 +870,9 @@
}, },
"require-dev": { "require-dev": {
"friendsofphp/php-cs-fixer": "^2.14 || ^3.0", "friendsofphp/php-cs-fixer": "^2.14 || ^3.0",
"kylekatarnls/multi-tester": "^0.1", "kylekatarnls/multi-tester": "^1.1",
"phpmd/phpmd": "^2.6", "phpmd/phpmd": "^2.6",
"phpstan/phpstan": "^0.10.8", "phpstan/phpstan": "^0.11",
"phpunit/phpunit": "^7.5 || ^8.0", "phpunit/phpunit": "^7.5 || ^8.0",
"squizlabs/php_codesniffer": "^3.4" "squizlabs/php_codesniffer": "^3.4"
}, },
@ -902,7 +907,7 @@
"datetime", "datetime",
"time" "time"
], ],
"time": "2019-03-12T09:31:40+00:00" "time": "2019-04-27T18:04:27+00:00"
}, },
{ {
"name": "nette/finder", "name": "nette/finder",
@ -1579,16 +1584,16 @@
}, },
{ {
"name": "phpdocumentor/reflection-docblock", "name": "phpdocumentor/reflection-docblock",
"version": "4.3.0", "version": "4.3.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
"reference": "94fd0001232e47129dd3504189fa1c7225010d08" "reference": "bdd9f737ebc2a01c06ea7ff4308ec6697db9b53c"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/94fd0001232e47129dd3504189fa1c7225010d08", "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/bdd9f737ebc2a01c06ea7ff4308ec6697db9b53c",
"reference": "94fd0001232e47129dd3504189fa1c7225010d08", "reference": "bdd9f737ebc2a01c06ea7ff4308ec6697db9b53c",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1626,7 +1631,7 @@
} }
], ],
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
"time": "2017-11-30T07:14:17+00:00" "time": "2019-04-30T17:48:53+00:00"
}, },
{ {
"name": "phpdocumentor/type-resolver", "name": "phpdocumentor/type-resolver",
@ -1740,16 +1745,16 @@
}, },
{ {
"name": "phpstan/phpstan-phpunit", "name": "phpstan/phpstan-phpunit",
"version": "0.11", "version": "0.11.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpstan/phpstan-phpunit.git", "url": "https://github.com/phpstan/phpstan-phpunit.git",
"reference": "70c22d44b96a21a4952fc13021a5a63cc83f5c81" "reference": "0d339995c3c6acc56bc912959f436298c70d13ab"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/70c22d44b96a21a4952fc13021a5a63cc83f5c81", "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/0d339995c3c6acc56bc912959f436298c70d13ab",
"reference": "70c22d44b96a21a4952fc13021a5a63cc83f5c81", "reference": "0d339995c3c6acc56bc912959f436298c70d13ab",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1771,10 +1776,15 @@
"satooshi/php-coveralls": "^1.0", "satooshi/php-coveralls": "^1.0",
"slevomat/coding-standard": "^4.5.2" "slevomat/coding-standard": "^4.5.2"
}, },
"type": "library", "type": "phpstan-extension",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "0.11-dev" "dev-master": "0.11-dev"
},
"phpstan": {
"includes": [
"extension.neon"
]
} }
}, },
"autoload": { "autoload": {
@ -1787,20 +1797,20 @@
"MIT" "MIT"
], ],
"description": "PHPUnit extensions and rules for PHPStan", "description": "PHPUnit extensions and rules for PHPStan",
"time": "2018-12-22T14:05:04+00:00" "time": "2019-05-10T20:33:17+00:00"
}, },
{ {
"name": "phpstan/phpstan-shim", "name": "phpstan/phpstan-shim",
"version": "0.11.4", "version": "0.11.6",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpstan/phpstan-shim.git", "url": "https://github.com/phpstan/phpstan-shim.git",
"reference": "70e1a346907142449ac085745f158aa715b4e0b8" "reference": "f38e0658f497517aff0635f4a622858a5d20c37f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan-shim/zipball/70e1a346907142449ac085745f158aa715b4e0b8", "url": "https://api.github.com/repos/phpstan/phpstan-shim/zipball/f38e0658f497517aff0635f4a622858a5d20c37f",
"reference": "70e1a346907142449ac085745f158aa715b4e0b8", "reference": "f38e0658f497517aff0635f4a622858a5d20c37f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1808,7 +1818,7 @@
}, },
"replace": { "replace": {
"nikic/php-parser": "^4.0.2", "nikic/php-parser": "^4.0.2",
"phpstan/phpdoc-parser": "^0.3", "phpstan/phpdoc-parser": "^0.3.3",
"phpstan/phpstan": "self.version" "phpstan/phpstan": "self.version"
}, },
"bin": [ "bin": [
@ -1831,7 +1841,7 @@
"MIT" "MIT"
], ],
"description": "PHPStan Phar distribution", "description": "PHPStan Phar distribution",
"time": "2019-03-14T15:24:47+00:00" "time": "2019-05-08T19:07:51+00:00"
}, },
{ {
"name": "phpstan/phpstan-strict-rules", "name": "phpstan/phpstan-strict-rules",
@ -2133,16 +2143,16 @@
}, },
{ {
"name": "phpunit/phpunit", "name": "phpunit/phpunit",
"version": "8.0.5", "version": "8.1.5",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git", "url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "19cbed2120839772c4a00e8b28456b0c77d1a7b4" "reference": "01392d4b5878aa617e8d9bc7a529e5febc8fe956"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/19cbed2120839772c4a00e8b28456b0c77d1a7b4", "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/01392d4b5878aa617e8d9bc7a529e5febc8fe956",
"reference": "19cbed2120839772c4a00e8b28456b0c77d1a7b4", "reference": "01392d4b5878aa617e8d9bc7a529e5febc8fe956",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2185,7 +2195,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "8.0-dev" "dev-master": "8.1-dev"
} }
}, },
"autoload": { "autoload": {
@ -2211,7 +2221,7 @@
"testing", "testing",
"xunit" "xunit"
], ],
"time": "2019-03-16T07:33:46+00:00" "time": "2019-05-14T04:57:31+00:00"
}, },
{ {
"name": "psr/cache", "name": "psr/cache",
@ -2570,16 +2580,16 @@
}, },
{ {
"name": "sebastian/environment", "name": "sebastian/environment",
"version": "4.1.0", "version": "4.2.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/environment.git", "url": "https://github.com/sebastianbergmann/environment.git",
"reference": "6fda8ce1974b62b14935adc02a9ed38252eca656" "reference": "f2a2c8e1c97c11ace607a7a667d73d47c19fe404"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/6fda8ce1974b62b14935adc02a9ed38252eca656", "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/f2a2c8e1c97c11ace607a7a667d73d47c19fe404",
"reference": "6fda8ce1974b62b14935adc02a9ed38252eca656", "reference": "f2a2c8e1c97c11ace607a7a667d73d47c19fe404",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2594,7 +2604,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "4.1-dev" "dev-master": "4.2-dev"
} }
}, },
"autoload": { "autoload": {
@ -2619,7 +2629,7 @@
"environment", "environment",
"hhvm" "hhvm"
], ],
"time": "2019-02-01T05:27:49+00:00" "time": "2019-05-05T09:05:15+00:00"
}, },
{ {
"name": "sebastian/exporter", "name": "sebastian/exporter",
@ -3023,30 +3033,30 @@
}, },
{ {
"name": "slam/php-cs-fixer-extensions", "name": "slam/php-cs-fixer-extensions",
"version": "v1.18.0", "version": "v1.19.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/Slamdunk/php-cs-fixer-extensions.git", "url": "https://github.com/Slamdunk/php-cs-fixer-extensions.git",
"reference": "da18f089d1c559915d3c25d5e8783c7b7d272d1d" "reference": "1cc36ca952e49579bfa94964194de7008862b958"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/Slamdunk/php-cs-fixer-extensions/zipball/da18f089d1c559915d3c25d5e8783c7b7d272d1d", "url": "https://api.github.com/repos/Slamdunk/php-cs-fixer-extensions/zipball/1cc36ca952e49579bfa94964194de7008862b958",
"reference": "da18f089d1c559915d3c25d5e8783c7b7d272d1d", "reference": "1cc36ca952e49579bfa94964194de7008862b958",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"friendsofphp/php-cs-fixer": "^2.14", "friendsofphp/php-cs-fixer": "^2.15",
"php": "^7.1" "php": "^7.2"
}, },
"require-dev": { "require-dev": {
"phpstan/phpstan": "^0.10", "phpstan/phpstan": "^0.11",
"phpstan/phpstan-phpunit": "^0.10", "phpstan/phpstan-phpunit": "^0.11",
"phpunit/phpunit": "^7.5", "phpunit/phpunit": "^7.5",
"roave/security-advisories": "dev-master", "roave/security-advisories": "dev-master",
"slam/php-debug-r": "^1.4", "slam/php-debug-r": "^1.4",
"slam/phpstan-extensions": "^2.0", "slam/phpstan-extensions": "^3.0",
"thecodingmachine/phpstan-strict-rules": "^0.10" "thecodingmachine/phpstan-strict-rules": "^0.11"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@ -3066,7 +3076,7 @@
} }
], ],
"description": "Slam extension of friendsofphp/php-cs-fixer", "description": "Slam extension of friendsofphp/php-cs-fixer",
"time": "2019-01-07T15:02:12+00:00" "time": "2019-05-06T08:55:25+00:00"
}, },
{ {
"name": "slevomat/coding-standard", "name": "slevomat/coding-standard",
@ -3110,16 +3120,16 @@
}, },
{ {
"name": "squizlabs/php_codesniffer", "name": "squizlabs/php_codesniffer",
"version": "3.4.1", "version": "3.4.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
"reference": "5b4333b4010625d29580eb4a41f1e53251be6baa" "reference": "b8a7362af1cc1aadb5bd36c3defc4dda2cf5f0a8"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/5b4333b4010625d29580eb4a41f1e53251be6baa", "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/b8a7362af1cc1aadb5bd36c3defc4dda2cf5f0a8",
"reference": "5b4333b4010625d29580eb4a41f1e53251be6baa", "reference": "b8a7362af1cc1aadb5bd36c3defc4dda2cf5f0a8",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3157,20 +3167,20 @@
"phpcs", "phpcs",
"standards" "standards"
], ],
"time": "2019-03-19T03:22:27+00:00" "time": "2019-04-10T23:49:02+00:00"
}, },
{ {
"name": "symfony/cache", "name": "symfony/cache",
"version": "v4.2.4", "version": "v4.2.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/cache.git", "url": "https://github.com/symfony/cache.git",
"reference": "b5c650406953f2f44a37c4f3ac66152fafc22c66" "reference": "9e64db924324700e19ef4f21c2c279a35ff9bdff"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/cache/zipball/b5c650406953f2f44a37c4f3ac66152fafc22c66", "url": "https://api.github.com/repos/symfony/cache/zipball/9e64db924324700e19ef4f21c2c279a35ff9bdff",
"reference": "b5c650406953f2f44a37c4f3ac66152fafc22c66", "reference": "9e64db924324700e19ef4f21c2c279a35ff9bdff",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3234,20 +3244,20 @@
"caching", "caching",
"psr6" "psr6"
], ],
"time": "2019-02-23T15:17:42+00:00" "time": "2019-04-16T09:36:45+00:00"
}, },
{ {
"name": "symfony/config", "name": "symfony/config",
"version": "v4.2.4", "version": "v4.2.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/config.git", "url": "https://github.com/symfony/config.git",
"reference": "7f70d79c7a24a94f8e98abb988049403a53d7b31" "reference": "0e745ead307d5dcd4e163e94a47ec04b1428943f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/config/zipball/7f70d79c7a24a94f8e98abb988049403a53d7b31", "url": "https://api.github.com/repos/symfony/config/zipball/0e745ead307d5dcd4e163e94a47ec04b1428943f",
"reference": "7f70d79c7a24a94f8e98abb988049403a53d7b31", "reference": "0e745ead307d5dcd4e163e94a47ec04b1428943f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3297,20 +3307,20 @@
], ],
"description": "Symfony Config Component", "description": "Symfony Config Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2019-02-23T15:17:42+00:00" "time": "2019-04-01T14:03:25+00:00"
}, },
{ {
"name": "symfony/console", "name": "symfony/console",
"version": "v4.2.4", "version": "v4.2.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/console.git", "url": "https://github.com/symfony/console.git",
"reference": "9dc2299a016497f9ee620be94524e6c0af0280a9" "reference": "e2840bb38bddad7a0feaf85931e38fdcffdb2f81"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/console/zipball/9dc2299a016497f9ee620be94524e6c0af0280a9", "url": "https://api.github.com/repos/symfony/console/zipball/e2840bb38bddad7a0feaf85931e38fdcffdb2f81",
"reference": "9dc2299a016497f9ee620be94524e6c0af0280a9", "reference": "e2840bb38bddad7a0feaf85931e38fdcffdb2f81",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3369,20 +3379,20 @@
], ],
"description": "Symfony Console Component", "description": "Symfony Console Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2019-02-23T15:17:42+00:00" "time": "2019-04-08T14:23:48+00:00"
}, },
{ {
"name": "symfony/contracts", "name": "symfony/contracts",
"version": "v1.0.2", "version": "v1.1.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/contracts.git", "url": "https://github.com/symfony/contracts.git",
"reference": "1aa7ab2429c3d594dd70689604b5cf7421254cdf" "reference": "d3636025e8253c6144358ec0a62773cae588395b"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/contracts/zipball/1aa7ab2429c3d594dd70689604b5cf7421254cdf", "url": "https://api.github.com/repos/symfony/contracts/zipball/d3636025e8253c6144358ec0a62773cae588395b",
"reference": "1aa7ab2429c3d594dd70689604b5cf7421254cdf", "reference": "d3636025e8253c6144358ec0a62773cae588395b",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3390,19 +3400,22 @@
}, },
"require-dev": { "require-dev": {
"psr/cache": "^1.0", "psr/cache": "^1.0",
"psr/container": "^1.0" "psr/container": "^1.0",
"symfony/polyfill-intl-idn": "^1.10"
}, },
"suggest": { "suggest": {
"psr/cache": "When using the Cache contracts", "psr/cache": "When using the Cache contracts",
"psr/container": "When using the Service contracts", "psr/container": "When using the Service contracts",
"symfony/cache-contracts-implementation": "", "symfony/cache-contracts-implementation": "",
"symfony/event-dispatcher-implementation": "",
"symfony/http-client-contracts-implementation": "",
"symfony/service-contracts-implementation": "", "symfony/service-contracts-implementation": "",
"symfony/translation-contracts-implementation": "" "symfony/translation-contracts-implementation": ""
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.0-dev" "dev-master": "1.1-dev"
} }
}, },
"autoload": { "autoload": {
@ -3437,20 +3450,20 @@
"interoperability", "interoperability",
"standards" "standards"
], ],
"time": "2018-12-05T08:06:11+00:00" "time": "2019-04-27T14:29:50+00:00"
}, },
{ {
"name": "symfony/debug", "name": "symfony/debug",
"version": "v4.2.4", "version": "v4.2.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/debug.git", "url": "https://github.com/symfony/debug.git",
"reference": "de73f48977b8eaf7ce22814d66e43a1662cc864f" "reference": "2d279b6bb1d582dd5740d4d3251ae8c18812ed37"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/debug/zipball/de73f48977b8eaf7ce22814d66e43a1662cc864f", "url": "https://api.github.com/repos/symfony/debug/zipball/2d279b6bb1d582dd5740d4d3251ae8c18812ed37",
"reference": "de73f48977b8eaf7ce22814d66e43a1662cc864f", "reference": "2d279b6bb1d582dd5740d4d3251ae8c18812ed37",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3493,20 +3506,20 @@
], ],
"description": "Symfony Debug Component", "description": "Symfony Debug Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2019-03-03T18:11:24+00:00" "time": "2019-04-11T11:27:41+00:00"
}, },
{ {
"name": "symfony/dependency-injection", "name": "symfony/dependency-injection",
"version": "v4.2.4", "version": "v4.2.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/dependency-injection.git", "url": "https://github.com/symfony/dependency-injection.git",
"reference": "cdadb3765df7c89ac93628743913b92bb91f1704" "reference": "d161c0c8bc77ad6fdb8f5083b9e34c3015d43eb1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/dependency-injection/zipball/cdadb3765df7c89ac93628743913b92bb91f1704", "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/d161c0c8bc77ad6fdb8f5083b9e34c3015d43eb1",
"reference": "cdadb3765df7c89ac93628743913b92bb91f1704", "reference": "d161c0c8bc77ad6fdb8f5083b9e34c3015d43eb1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3566,20 +3579,20 @@
], ],
"description": "Symfony DependencyInjection Component", "description": "Symfony DependencyInjection Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2019-02-23T15:17:42+00:00" "time": "2019-04-27T11:48:17+00:00"
}, },
{ {
"name": "symfony/event-dispatcher", "name": "symfony/event-dispatcher",
"version": "v4.2.4", "version": "v4.2.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/event-dispatcher.git", "url": "https://github.com/symfony/event-dispatcher.git",
"reference": "3354d2e6af986dd71f68b4e5cf4a933ab58697fb" "reference": "fbce53cd74ac509cbe74b6f227622650ab759b02"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/3354d2e6af986dd71f68b4e5cf4a933ab58697fb", "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/fbce53cd74ac509cbe74b6f227622650ab759b02",
"reference": "3354d2e6af986dd71f68b4e5cf4a933ab58697fb", "reference": "fbce53cd74ac509cbe74b6f227622650ab759b02",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3630,11 +3643,11 @@
], ],
"description": "Symfony EventDispatcher Component", "description": "Symfony EventDispatcher Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2019-02-23T15:17:42+00:00" "time": "2019-04-06T13:51:08+00:00"
}, },
{ {
"name": "symfony/filesystem", "name": "symfony/filesystem",
"version": "v4.2.4", "version": "v4.2.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/filesystem.git", "url": "https://github.com/symfony/filesystem.git",
@ -3684,16 +3697,16 @@
}, },
{ {
"name": "symfony/finder", "name": "symfony/finder",
"version": "v4.2.4", "version": "v4.2.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/finder.git", "url": "https://github.com/symfony/finder.git",
"reference": "267b7002c1b70ea80db0833c3afe05f0fbde580a" "reference": "e45135658bd6c14b61850bf131c4f09a55133f69"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/finder/zipball/267b7002c1b70ea80db0833c3afe05f0fbde580a", "url": "https://api.github.com/repos/symfony/finder/zipball/e45135658bd6c14b61850bf131c4f09a55133f69",
"reference": "267b7002c1b70ea80db0833c3afe05f0fbde580a", "reference": "e45135658bd6c14b61850bf131c4f09a55133f69",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3729,20 +3742,20 @@
], ],
"description": "Symfony Finder Component", "description": "Symfony Finder Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2019-02-23T15:42:05+00:00" "time": "2019-04-06T13:51:08+00:00"
}, },
{ {
"name": "symfony/http-foundation", "name": "symfony/http-foundation",
"version": "v4.2.4", "version": "v4.2.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/http-foundation.git", "url": "https://github.com/symfony/http-foundation.git",
"reference": "850a667d6254ccf6c61d853407b16f21c4579c77" "reference": "1ea878bd3af18f934dedb8c0de60656a9a31a718"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/850a667d6254ccf6c61d853407b16f21c4579c77", "url": "https://api.github.com/repos/symfony/http-foundation/zipball/1ea878bd3af18f934dedb8c0de60656a9a31a718",
"reference": "850a667d6254ccf6c61d853407b16f21c4579c77", "reference": "1ea878bd3af18f934dedb8c0de60656a9a31a718",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3783,20 +3796,20 @@
], ],
"description": "Symfony HttpFoundation Component", "description": "Symfony HttpFoundation Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2019-02-26T08:03:39+00:00" "time": "2019-05-01T08:36:31+00:00"
}, },
{ {
"name": "symfony/http-kernel", "name": "symfony/http-kernel",
"version": "v4.2.4", "version": "v4.2.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/http-kernel.git", "url": "https://github.com/symfony/http-kernel.git",
"reference": "895ceccaa8149f9343e6134e607c21da42d73b7a" "reference": "a7713bc522f1a1cdf0b39f809fa4542523fc3114"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/895ceccaa8149f9343e6134e607c21da42d73b7a", "url": "https://api.github.com/repos/symfony/http-kernel/zipball/a7713bc522f1a1cdf0b39f809fa4542523fc3114",
"reference": "895ceccaa8149f9343e6134e607c21da42d73b7a", "reference": "a7713bc522f1a1cdf0b39f809fa4542523fc3114",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3872,20 +3885,20 @@
], ],
"description": "Symfony HttpKernel Component", "description": "Symfony HttpKernel Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2019-03-03T19:38:09+00:00" "time": "2019-05-01T13:31:08+00:00"
}, },
{ {
"name": "symfony/options-resolver", "name": "symfony/options-resolver",
"version": "v4.2.4", "version": "v4.2.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/options-resolver.git", "url": "https://github.com/symfony/options-resolver.git",
"reference": "3896e5a7d06fd15fa4947694c8dcdd371ff147d1" "reference": "fd4a5f27b7cd085b489247b9890ebca9f3e10044"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/options-resolver/zipball/3896e5a7d06fd15fa4947694c8dcdd371ff147d1", "url": "https://api.github.com/repos/symfony/options-resolver/zipball/fd4a5f27b7cd085b489247b9890ebca9f3e10044",
"reference": "3896e5a7d06fd15fa4947694c8dcdd371ff147d1", "reference": "fd4a5f27b7cd085b489247b9890ebca9f3e10044",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3926,7 +3939,7 @@
"configuration", "configuration",
"options" "options"
], ],
"time": "2019-02-23T15:17:42+00:00" "time": "2019-04-10T16:20:36+00:00"
}, },
{ {
"name": "symfony/polyfill-ctype", "name": "symfony/polyfill-ctype",
@ -4161,16 +4174,16 @@
}, },
{ {
"name": "symfony/process", "name": "symfony/process",
"version": "v4.2.4", "version": "v4.2.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/process.git", "url": "https://github.com/symfony/process.git",
"reference": "6c05edb11fbeff9e2b324b4270ecb17911a8b7ad" "reference": "8cf39fb4ccff793340c258ee7760fd40bfe745fe"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/process/zipball/6c05edb11fbeff9e2b324b4270ecb17911a8b7ad", "url": "https://api.github.com/repos/symfony/process/zipball/8cf39fb4ccff793340c258ee7760fd40bfe745fe",
"reference": "6c05edb11fbeff9e2b324b4270ecb17911a8b7ad", "reference": "8cf39fb4ccff793340c258ee7760fd40bfe745fe",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4206,11 +4219,11 @@
], ],
"description": "Symfony Process Component", "description": "Symfony Process Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2019-01-24T22:05:03+00:00" "time": "2019-04-10T16:20:36+00:00"
}, },
{ {
"name": "symfony/stopwatch", "name": "symfony/stopwatch",
"version": "v4.2.4", "version": "v4.2.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/stopwatch.git", "url": "https://github.com/symfony/stopwatch.git",
@ -4260,16 +4273,16 @@
}, },
{ {
"name": "symfony/translation", "name": "symfony/translation",
"version": "v4.2.4", "version": "v4.2.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/translation.git", "url": "https://github.com/symfony/translation.git",
"reference": "748464177a77011f8f4cdd076773862ce4915f8f" "reference": "181a426dd129cb496f12d7e7555f6d0b37a7615b"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/translation/zipball/748464177a77011f8f4cdd076773862ce4915f8f", "url": "https://api.github.com/repos/symfony/translation/zipball/181a426dd129cb496f12d7e7555f6d0b37a7615b",
"reference": "748464177a77011f8f4cdd076773862ce4915f8f", "reference": "181a426dd129cb496f12d7e7555f6d0b37a7615b",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4291,7 +4304,9 @@
"symfony/console": "~3.4|~4.0", "symfony/console": "~3.4|~4.0",
"symfony/dependency-injection": "~3.4|~4.0", "symfony/dependency-injection": "~3.4|~4.0",
"symfony/finder": "~2.8|~3.0|~4.0", "symfony/finder": "~2.8|~3.0|~4.0",
"symfony/http-kernel": "~3.4|~4.0",
"symfony/intl": "~3.4|~4.0", "symfony/intl": "~3.4|~4.0",
"symfony/var-dumper": "~3.4|~4.0",
"symfony/yaml": "~3.4|~4.0" "symfony/yaml": "~3.4|~4.0"
}, },
"suggest": { "suggest": {
@ -4329,20 +4344,20 @@
], ],
"description": "Symfony Translation Component", "description": "Symfony Translation Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2019-02-27T03:31:50+00:00" "time": "2019-05-01T12:55:36+00:00"
}, },
{ {
"name": "symfony/var-exporter", "name": "symfony/var-exporter",
"version": "v4.2.4", "version": "v4.2.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/var-exporter.git", "url": "https://github.com/symfony/var-exporter.git",
"reference": "d8bf4424c232b55f4c1816037d3077a89258557e" "reference": "57e00f3e0a3deee65b67cf971455b98afeacca46"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/var-exporter/zipball/d8bf4424c232b55f4c1816037d3077a89258557e", "url": "https://api.github.com/repos/symfony/var-exporter/zipball/57e00f3e0a3deee65b67cf971455b98afeacca46",
"reference": "d8bf4424c232b55f4c1816037d3077a89258557e", "reference": "57e00f3e0a3deee65b67cf971455b98afeacca46",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4389,20 +4404,20 @@
"instantiate", "instantiate",
"serialize" "serialize"
], ],
"time": "2019-01-16T20:35:37+00:00" "time": "2019-04-09T20:09:28+00:00"
}, },
{ {
"name": "symfony/yaml", "name": "symfony/yaml",
"version": "v4.2.4", "version": "v4.2.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/yaml.git", "url": "https://github.com/symfony/yaml.git",
"reference": "761fa560a937fd7686e5274ff89dcfa87a5047df" "reference": "6712daf03ee25b53abb14e7e8e0ede1a770efdb1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/yaml/zipball/761fa560a937fd7686e5274ff89dcfa87a5047df", "url": "https://api.github.com/repos/symfony/yaml/zipball/6712daf03ee25b53abb14e7e8e0ede1a770efdb1",
"reference": "761fa560a937fd7686e5274ff89dcfa87a5047df", "reference": "6712daf03ee25b53abb14e7e8e0ede1a770efdb1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4448,7 +4463,7 @@
], ],
"description": "Symfony Yaml Component", "description": "Symfony Yaml Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2019-02-23T15:17:42+00:00" "time": "2019-03-30T15:58:42+00:00"
}, },
{ {
"name": "symplify/better-phpdoc-parser", "name": "symplify/better-phpdoc-parser",
@ -4654,16 +4669,16 @@
}, },
{ {
"name": "theseer/tokenizer", "name": "theseer/tokenizer",
"version": "1.1.0", "version": "1.1.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/theseer/tokenizer.git", "url": "https://github.com/theseer/tokenizer.git",
"reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b" "reference": "1c42705be2b6c1de5904f8afacef5895cab44bf8"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/theseer/tokenizer/zipball/cb2f008f3f05af2893a87208fe6a6c4985483f8b", "url": "https://api.github.com/repos/theseer/tokenizer/zipball/1c42705be2b6c1de5904f8afacef5895cab44bf8",
"reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b", "reference": "1c42705be2b6c1de5904f8afacef5895cab44bf8",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4690,7 +4705,7 @@
} }
], ],
"description": "A small library for converting tokenized PHP source code into XML and potentially other formats", "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
"time": "2017-04-07T12:08:54+00:00" "time": "2019-04-04T09:56:43+00:00"
}, },
{ {
"name": "webmozart/assert", "name": "webmozart/assert",

View File

@ -167,6 +167,10 @@ class Space extends SplObjectStorage
foreach ($cluster as $point) { foreach ($cluster as $point) {
$closest = $point->getClosest($clusters); $closest = $point->getClosest($clusters);
if ($closest === null) {
continue;
}
if ($closest !== $cluster) { if ($closest !== $cluster) {
$attach[$closest] ?? $attach[$closest] = new SplObjectStorage(); $attach[$closest] ?? $attach[$closest] = new SplObjectStorage();
$detach[$cluster] ?? $detach[$cluster] = new SplObjectStorage(); $detach[$cluster] ?? $detach[$cluster] = new SplObjectStorage();

View File

@ -19,7 +19,13 @@ class FilesDataset extends ArrayDataset
private function scanRootPath(string $rootPath): void private function scanRootPath(string $rootPath): void
{ {
foreach (glob($rootPath.DIRECTORY_SEPARATOR.'*', GLOB_ONLYDIR) as $dir) { $dirs = glob($rootPath.DIRECTORY_SEPARATOR.'*', GLOB_ONLYDIR);
if ($dirs === false) {
throw new DatasetException(sprintf('An error occurred during directory "%s" scan', $rootPath));
}
foreach ($dirs as $dir) {
$this->scanDir($dir); $this->scanDir($dir);
} }
} }
@ -28,7 +34,12 @@ class FilesDataset extends ArrayDataset
{ {
$target = basename($dir); $target = basename($dir);
foreach (array_filter(glob($dir.DIRECTORY_SEPARATOR.'*'), 'is_file') as $file) { $files = glob($dir.DIRECTORY_SEPARATOR.'*');
if ($files === false) {
return;
}
foreach (array_filter($files, 'is_file') as $file) {
$this->samples[] = file_get_contents($file); $this->samples[] = file_get_contents($file);
$this->targets[] = $target; $this->targets[] = $target;
} }