Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
c23e780c
Unverified
Commit
c23e780c
authored
Aug 24, 2019
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated PHPStan to v0.11.15
parent
54b52aed
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
164 additions
and
109 deletions
+164
-109
composer.lock
composer.lock
+156
-107
ArrayType.php
lib/Doctrine/DBAL/Types/ArrayType.php
+1
-1
ObjectType.php
lib/Doctrine/DBAL/Types/ObjectType.php
+1
-1
phpcs.xml.dist
phpcs.xml.dist
+6
-0
No files found.
composer.lock
View file @
c23e780c
...
...
@@ -158,16 +158,16 @@
"packages-dev": [
{
"name": "composer/xdebug-handler",
"version": "1.3.
2
",
"version": "1.3.
3
",
"source": {
"type": "git",
"url": "https://github.com/composer/xdebug-handler.git",
"reference": "
d17708133b6c276d6e42ef887a877866b909d892
"
"reference": "
46867cbf8ca9fb8d60c506895449eb799db1184f
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/composer/xdebug-handler/zipball/
d17708133b6c276d6e42ef887a877866b909d892
",
"reference": "
d17708133b6c276d6e42ef887a877866b909d892
",
"url": "https://api.github.com/repos/composer/xdebug-handler/zipball/
46867cbf8ca9fb8d60c506895449eb799db1184f
",
"reference": "
46867cbf8ca9fb8d60c506895449eb799db1184f
",
"shasum": ""
},
"require": {
...
...
@@ -198,7 +198,7 @@
"Xdebug",
"performance"
],
"time": "2019-0
1-28T20:25:53
+00:00"
"time": "2019-0
5-27T17:52:04
+00:00"
},
{
"name": "dealerdirect/phpcodesniffer-composer-installer",
...
...
@@ -523,39 +523,36 @@
},
{
"name": "nette/bootstrap",
"version": "v
2.4.6
",
"version": "v
3.0.0
",
"source": {
"type": "git",
"url": "https://github.com/nette/bootstrap.git",
"reference": "
268816e3f1bb7426c3a4ceec2bd38a036b53254
3"
"reference": "
e1075af05c211915e03e0c86542f3ba5433df4a
3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nette/bootstrap/zipball/
268816e3f1bb7426c3a4ceec2bd38a036b53254
3",
"reference": "
268816e3f1bb7426c3a4ceec2bd38a036b53254
3",
"url": "https://api.github.com/repos/nette/bootstrap/zipball/
e1075af05c211915e03e0c86542f3ba5433df4a
3",
"reference": "
e1075af05c211915e03e0c86542f3ba5433df4a
3",
"shasum": ""
},
"require": {
"nette/di": "~2.4.7",
"nette/utils": "~2.4",
"php": ">=5.6.0"
},
"conflict": {
"nette/nette": "<2.2"
"nette/di": "^3.0",
"nette/utils": "^3.0",
"php": ">=7.1"
},
"require-dev": {
"latte/latte": "
~
2.2",
"nette/application": "
~2.3
",
"nette/caching": "
~2.3
",
"nette/database": "
~2.3
",
"nette/forms": "
~2.3
",
"nette/http": "
~2.4
.0",
"nette/mail": "
~2.3
",
"nette/robot-loader": "^
2.4.2 || ^
3.0",
"nette/safe-stream": "
~
2.2",
"nette/security": "
~2.3
",
"nette/tester": "
~
2.0",
"tracy/tracy": "^2.
4.1
"
"latte/latte": "
^
2.2",
"nette/application": "
^3.0
",
"nette/caching": "
^3.0
",
"nette/database": "
^3.0
",
"nette/forms": "
^3.0
",
"nette/http": "
^3
.0",
"nette/mail": "
^3.0
",
"nette/robot-loader": "^3.0",
"nette/safe-stream": "
^
2.2",
"nette/security": "
^3.0
",
"nette/tester": "
^
2.0",
"tracy/tracy": "^2.
6
"
},
"suggest": {
"nette/robot-loader": "to use Configurator::createRobotLoader()",
...
...
@@ -564,7 +561,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "
2.4
-dev"
"dev-master": "
3.0
-dev"
}
},
"autoload": {
...
...
@@ -595,46 +592,50 @@
"configurator",
"nette"
],
"time": "201
8-05-17T12:52:20
+00:00"
"time": "201
9-03-26T12:59:07
+00:00"
},
{
"name": "nette/di",
"version": "v
2.4.15
",
"version": "v
3.0.1
",
"source": {
"type": "git",
"url": "https://github.com/nette/di.git",
"reference": "
d0561b8f77e8ef2ed6d83328860e16c81a5a8649
"
"reference": "
4aff517a1c6bb5c36fa09733d4cea089f529de6d
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nette/di/zipball/
d0561b8f77e8ef2ed6d83328860e16c81a5a8649
",
"reference": "
d0561b8f77e8ef2ed6d83328860e16c81a5a8649
",
"url": "https://api.github.com/repos/nette/di/zipball/
4aff517a1c6bb5c36fa09733d4cea089f529de6d
",
"reference": "
4aff517a1c6bb5c36fa09733d4cea089f529de6d
",
"shasum": ""
},
"require": {
"ext-tokenizer": "*",
"nette/neon": "^2.3.3 || ~3.0.0",
"nette/php-generator": "^2.6.1 || ^3.0.0",
"nette/utils": "^2.5.0 || ~3.0.0",
"php": ">=5.6.0"
"nette/neon": "^3.0",
"nette/php-generator": "^3.2.2",
"nette/robot-loader": "^3.2",
"nette/schema": "^1.0",
"nette/utils": "^3.0",
"php": ">=7.1"
},
"conflict": {
"nette/bootstrap": "<2.4",
"nette/nette": "<2.2"
"nette/bootstrap": "<3.0"
},
"require-dev": {
"nette/tester": "^2.
0
",
"nette/tester": "^2.
2
",
"tracy/tracy": "^2.3"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "
2.4
-dev"
"dev-master": "
3.0
-dev"
}
},
"autoload": {
"classmap": [
"src/"
],
"files": [
"src/compatibility.php"
]
},
"notification-url": "https://packagist.org/downloads/",
...
...
@@ -664,7 +665,7 @@
"nette",
"static"
],
"time": "2019-0
1-30T13:26:05
+00:00"
"time": "2019-0
8-07T12:11:33
+00:00"
},
{
"name": "nette/finder",
...
...
@@ -791,25 +792,22 @@
},
{
"name": "nette/php-generator",
"version": "v3.2.
1
",
"version": "v3.2.
3
",
"source": {
"type": "git",
"url": "https://github.com/nette/php-generator.git",
"reference": "
9de4e093a130f7a1bd175198799ebc0efbac6924
"
"reference": "
aea6e81437bb238e5f0e5b5ce06337433908e63b
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nette/php-generator/zipball/
9de4e093a130f7a1bd175198799ebc0efbac6924
",
"reference": "
9de4e093a130f7a1bd175198799ebc0efbac6924
",
"url": "https://api.github.com/repos/nette/php-generator/zipball/
aea6e81437bb238e5f0e5b5ce06337433908e63b
",
"reference": "
aea6e81437bb238e5f0e5b5ce06337433908e63b
",
"shasum": ""
},
"require": {
"nette/utils": "^2.4.2 || ~3.0.0",
"php": ">=7.1"
},
"conflict": {
"nette/nette": "<2.2"
},
"require-dev": {
"nette/tester": "^2.0",
"tracy/tracy": "^2.3"
...
...
@@ -849,30 +847,27 @@
"php",
"scaffolding"
],
"time": "201
8-11-27T19:00:14
+00:00"
"time": "201
9-07-05T13:01:56
+00:00"
},
{
"name": "nette/robot-loader",
"version": "v3.
1.1
",
"version": "v3.
2.0
",
"source": {
"type": "git",
"url": "https://github.com/nette/robot-loader.git",
"reference": "
3e8d75d6d976e191bdf46752ca40a286671219d2
"
"reference": "
0712a0e39ae7956d6a94c0ab6ad41aa842544b5c
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nette/robot-loader/zipball/
3e8d75d6d976e191bdf46752ca40a286671219d2
",
"reference": "
3e8d75d6d976e191bdf46752ca40a286671219d2
",
"url": "https://api.github.com/repos/nette/robot-loader/zipball/
0712a0e39ae7956d6a94c0ab6ad41aa842544b5c
",
"reference": "
0712a0e39ae7956d6a94c0ab6ad41aa842544b5c
",
"shasum": ""
},
"require": {
"ext-tokenizer": "*",
"nette/finder": "^2.3 || ^3.0",
"nette/utils": "^2.4 || ^3.0",
"php": ">=5.6.0"
},
"conflict": {
"nette/nette": "<2.2"
"nette/finder": "^2.5",
"nette/utils": "^3.0",
"php": ">=7.1"
},
"require-dev": {
"nette/tester": "^2.0",
...
...
@@ -881,7 +876,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.
1
-dev"
"dev-master": "3.
2
-dev"
}
},
"autoload": {
...
...
@@ -905,7 +900,7 @@
"homepage": "https://nette.org/contributors"
}
],
"description": "
🍀
Nette RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.",
"description": "
?
Nette RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.",
"homepage": "https://nette.org",
"keywords": [
"autoload",
...
...
@@ -914,27 +909,81 @@
"nette",
"trait"
],
"time": "2019-03-01T20:23:02+00:00"
"time": "2019-03-08T21:57:24+00:00"
},
{
"name": "nette/schema",
"version": "v1.0.0",
"source": {
"type": "git",
"url": "https://github.com/nette/schema.git",
"reference": "6241d8d4da39e825dd6cb5bfbe4242912f4d7e4d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nette/schema/zipball/6241d8d4da39e825dd6cb5bfbe4242912f4d7e4d",
"reference": "6241d8d4da39e825dd6cb5bfbe4242912f4d7e4d",
"shasum": ""
},
"require": {
"nette/utils": "^3.0.1",
"php": ">=7.1"
},
"require-dev": {
"nette/tester": "^2.2",
"tracy/tracy": "^2.3"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
}
},
"autoload": {
"classmap": [
"src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause",
"GPL-2.0",
"GPL-3.0"
],
"authors": [
{
"name": "David Grudl",
"homepage": "https://davidgrudl.com"
},
{
"name": "Nette Community",
"homepage": "https://nette.org/contributors"
}
],
"description": "📐 Nette Schema: validating data structures against a given Schema.",
"homepage": "https://nette.org",
"keywords": [
"config",
"nette"
],
"time": "2019-04-03T15:53:25+00:00"
},
{
"name": "nette/utils",
"version": "v
2.5.3
",
"version": "v
3.0.1
",
"source": {
"type": "git",
"url": "https://github.com/nette/utils.git",
"reference": "
17b9f76f2abd0c943adfb556e56f2165460b15ce
"
"reference": "
bd961f49b211997202bda1d0fbc410905be370d4
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nette/utils/zipball/
17b9f76f2abd0c943adfb556e56f2165460b15ce
",
"reference": "
17b9f76f2abd0c943adfb556e56f2165460b15ce
",
"url": "https://api.github.com/repos/nette/utils/zipball/
bd961f49b211997202bda1d0fbc410905be370d4
",
"reference": "
bd961f49b211997202bda1d0fbc410905be370d4
",
"shasum": ""
},
"require": {
"php": ">=5.6.0"
},
"conflict": {
"nette/nette": "<2.2"
"php": ">=7.1"
},
"require-dev": {
"nette/tester": "~2.0",
...
...
@@ -943,7 +992,7 @@
"suggest": {
"ext-gd": "to use Image",
"ext-iconv": "to use Strings::webalize() and toAscii()",
"ext-intl": "
for script transliteration in Strings::webalize() and toAscii
()",
"ext-intl": "
to use Strings::webalize(), toAscii(), normalize() and compare
()",
"ext-json": "to use Nette\\Utils\\Json",
"ext-mbstring": "to use Strings::lower() etc...",
"ext-xml": "to use Strings::length() etc. when mbstring is not available"
...
...
@@ -951,15 +1000,12 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "
2.5
-dev"
"dev-master": "
3.0
-dev"
}
},
"autoload": {
"classmap": [
"src/"
],
"files": [
"src/loader.php"
]
},
"notification-url": "https://packagist.org/downloads/",
...
...
@@ -996,20 +1042,20 @@
"utility",
"validation"
],
"time": "201
8-09-18T10:22:16
+00:00"
"time": "201
9-03-22T01:00:30
+00:00"
},
{
"name": "nikic/php-parser",
"version": "v4.2.
1
",
"version": "v4.2.
3
",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
"reference": "
5221f49a608808c1e4d436df32884cbc1b821ac0
"
"reference": "
e612609022e935f3d0337c1295176505b41188c8
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/
5221f49a608808c1e4d436df32884cbc1b821ac0
",
"reference": "
5221f49a608808c1e4d436df32884cbc1b821ac0
",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/
e612609022e935f3d0337c1295176505b41188c8
",
"reference": "
e612609022e935f3d0337c1295176505b41188c8
",
"shasum": ""
},
"require": {
...
...
@@ -1017,7 +1063,7 @@
"php": ">=7.0"
},
"require-dev": {
"phpunit/phpunit": "^6.5 || ^7.0"
"phpunit/phpunit": "^6.5 || ^7.0
|| ^8.0
"
},
"bin": [
"bin/php-parse"
...
...
@@ -1047,7 +1093,7 @@
"parser",
"php"
],
"time": "2019-0
2-16T20:54:15
+00:00"
"time": "2019-0
8-12T20:17:41
+00:00"
},
{
"name": "ocramius/package-versions",
...
...
@@ -1418,28 +1464,29 @@
},
{
"name": "phpstan/phpdoc-parser",
"version": "0.3.
1
",
"version": "0.3.
5
",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpdoc-parser.git",
"reference": "
2cc49f47c69b023eaf05b48e6529389893b13d7
4"
"reference": "
8c4ef2aefd9788238897b678a985e1d5c8df6db
4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/
2cc49f47c69b023eaf05b48e6529389893b13d7
4",
"reference": "
2cc49f47c69b023eaf05b48e6529389893b13d7
4",
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/
8c4ef2aefd9788238897b678a985e1d5c8df6db
4",
"reference": "
8c4ef2aefd9788238897b678a985e1d5c8df6db
4",
"shasum": ""
},
"require": {
"php": "~7.1"
},
"require-dev": {
"consistence/coding-standard": "^
2.0.0
",
"consistence/coding-standard": "^
3.5
",
"jakub-onderka/php-parallel-lint": "^0.9.2",
"phing/phing": "^2.16.0",
"phpstan/phpstan": "^0.10",
"phpunit/phpunit": "^6.3",
"slevomat/coding-standard": "^3.3.0",
"slevomat/coding-standard": "^4.7.2",
"squizlabs/php_codesniffer": "^3.3.2",
"symfony/process": "^3.4 || ^4.0"
},
"type": "library",
...
...
@@ -1460,20 +1507,20 @@
"MIT"
],
"description": "PHPDoc parser with support for nullable, intersection and generic types",
"time": "2019-0
1-14T12:26:23
+00:00"
"time": "2019-0
6-07T19:13:52
+00:00"
},
{
"name": "phpstan/phpstan",
"version": "0.11.
3
",
"version": "0.11.
15
",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan.git",
"reference": "
e4644b4a8fd393c346f1137305fb2f76a7dc20a7
"
"reference": "
1be5b3a706db16ac472a4c40ec03cf4c810b118d
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/
e4644b4a8fd393c346f1137305fb2f76a7dc20a7
",
"reference": "
e4644b4a8fd393c346f1137305fb2f76a7dc20a7
",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/
1be5b3a706db16ac472a4c40ec03cf4c810b118d
",
"reference": "
1be5b3a706db16ac472a4c40ec03cf4c810b118d
",
"shasum": ""
},
"require": {
...
...
@@ -1482,10 +1529,11 @@
"nette/bootstrap": "^2.4 || ^3.0",
"nette/di": "^2.4.7 || ^3.0",
"nette/robot-loader": "^3.0.1",
"nette/schema": "^1.0",
"nette/utils": "^2.4.5 || ^3.0",
"nikic/php-parser": "^4.
0.2
",
"nikic/php-parser": "^4.
2.3
",
"php": "~7.1",
"phpstan/phpdoc-parser": "^0.3",
"phpstan/phpdoc-parser": "^0.3
.5
",
"symfony/console": "~3.2 || ~4.0",
"symfony/finder": "~3.2 || ~4.0"
},
...
...
@@ -1493,11 +1541,12 @@
"symfony/console": "3.4.16 || 4.1.5"
},
"require-dev": {
"brianium/paratest": "^2.0",
"brianium/paratest": "^2.0
|| ^3.0
",
"consistence/coding-standard": "^3.5",
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.4",
"ext-intl": "*",
"ext-mysqli": "*",
"ext-simplexml": "*",
"ext-soap": "*",
"ext-zip": "*",
"jakub-onderka/php-parallel-lint": "^1.0",
...
...
@@ -1507,7 +1556,7 @@
"phpstan/phpstan-php-parser": "^0.11",
"phpstan/phpstan-phpunit": "^0.11",
"phpstan/phpstan-strict-rules": "^0.11",
"phpunit/phpunit": "^7.0",
"phpunit/phpunit": "^7.
5.14 || ^8.
0",
"slevomat/coding-standard": "^4.7.2",
"squizlabs/php_codesniffer": "^3.3.2"
},
...
...
@@ -1533,7 +1582,7 @@
"MIT"
],
"description": "PHPStan - PHP Static Analysis Tool",
"time": "2019-0
3-10T16:25:30
+00:00"
"time": "2019-0
8-18T20:51:53
+00:00"
},
{
"name": "phpunit/php-code-coverage",
...
...
@@ -2821,16 +2870,16 @@
},
{
"name": "symfony/finder",
"version": "v4.
2.4
",
"version": "v4.
3.3
",
"source": {
"type": "git",
"url": "https://github.com/symfony/finder.git",
"reference": "
267b7002c1b70ea80db0833c3afe05f0fbde580a
"
"reference": "
9638d41e3729459860bb96f6247ccb61faaa45f2
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/finder/zipball/
267b7002c1b70ea80db0833c3afe05f0fbde580a
",
"reference": "
267b7002c1b70ea80db0833c3afe05f0fbde580a
",
"url": "https://api.github.com/repos/symfony/finder/zipball/
9638d41e3729459860bb96f6247ccb61faaa45f2
",
"reference": "
9638d41e3729459860bb96f6247ccb61faaa45f2
",
"shasum": ""
},
"require": {
...
...
@@ -2839,7 +2888,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "4.
2
-dev"
"dev-master": "4.
3
-dev"
}
},
"autoload": {
...
...
@@ -2866,7 +2915,7 @@
],
"description": "Symfony Finder Component",
"homepage": "https://symfony.com",
"time": "2019-0
2-23T15:42:05
+00:00"
"time": "2019-0
6-28T13:16:30
+00:00"
},
{
"name": "symfony/polyfill-ctype",
...
...
@@ -3018,8 +3067,8 @@
"authors": [
{
"name": "Arne Blankerts",
"
email": "arne@blankerts.de
",
"
role": "Developer
"
"
role": "Developer
",
"
email": "arne@blankerts.de
"
}
],
"description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
...
...
lib/Doctrine/DBAL/Types/ArrayType.php
View file @
c23e780c
...
...
@@ -43,7 +43,7 @@ class ArrayType extends Type
$value
=
is_resource
(
$value
)
?
stream_get_contents
(
$value
)
:
$value
;
set_error_handler
(
function
(
int
$code
,
string
$message
)
:
void
{
set_error_handler
(
function
(
int
$code
,
string
$message
)
:
bool
{
throw
ConversionException
::
conversionFailedUnserialization
(
$this
->
getName
(),
$message
);
});
...
...
lib/Doctrine/DBAL/Types/ObjectType.php
View file @
c23e780c
...
...
@@ -42,7 +42,7 @@ class ObjectType extends Type
$value
=
is_resource
(
$value
)
?
stream_get_contents
(
$value
)
:
$value
;
set_error_handler
(
function
(
int
$code
,
string
$message
)
:
void
{
set_error_handler
(
function
(
int
$code
,
string
$message
)
:
bool
{
throw
ConversionException
::
conversionFailedUnserialization
(
$this
->
getName
(),
$message
);
});
...
...
phpcs.xml.dist
View file @
c23e780c
...
...
@@ -72,4 +72,10 @@
<rule
ref=
"SlevomatCodingStandard.Operators.DisallowEqualOperators.DisallowedNotEqualOperator"
>
<exclude-pattern>
lib/Doctrine/DBAL/Schema/Comparator.php
</exclude-pattern>
</rule>
<!-- see https://github.com/slevomat/coding-standard/issues/737 -->
<rule
ref=
"SlevomatCodingStandard.TypeHints.TypeHintDeclaration.IncorrectReturnTypeHint"
>
<exclude-pattern>
lib/Doctrine/DBAL/Types/ArrayType.php
</exclude-pattern>
<exclude-pattern>
lib/Doctrine/DBAL/Types/ObjectType.php
</exclude-pattern>
</rule>
</ruleset>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment