~ancarda/psr7-string-stream

c2d860568dee25bd9bef2c8cfd64f934164b4c9a — Mark Dain a month ago 42ce927
Upgrade to PHPStan 0.12
3 files changed, 46 insertions(+), 752 deletions(-)

M composer.json
M composer.lock
M src/StringStream.php
M composer.json => composer.json +3 -3
@@ 27,9 27,9 @@
        "guzzlehttp/psr7": "^1.6",
        "infection/infection": "^0.11.5",
        "nyholm/psr7": "^1.2",
        "phpstan/phpstan": "^0.11.15",
        "phpstan/phpstan-phpunit": "^0.11.2",
        "phpstan/phpstan-strict-rules": "^0.11.1",
        "phpstan/phpstan": "^0.12",
        "phpstan/phpstan-phpunit": "^0.12",
        "phpstan/phpstan-strict-rules": "^0.12",
        "phpunit/phpunit": "^7.5",
        "squizlabs/php_codesniffer": "^3.4"
    },

M composer.lock => composer.lock +42 -748
@@ 4,7 4,7 @@
        "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
        "This file is @generated automatically"
    ],
    "content-hash": "e3e8b6211e436e5fee103856f07d1132",
    "content-hash": "45ee70dd95a8bb4420c672fe68d2e0b0",
    "packages": [
        {
            "name": "psr/http-message",


@@ 511,61 511,6 @@
            "time": "2019-01-13T06:56:41+00:00"
        },
        {
            "name": "jean85/pretty-package-versions",
            "version": "1.5.1",
            "source": {
                "type": "git",
                "url": "https://github.com/Jean85/pretty-package-versions.git",
                "reference": "a917488320c20057da87f67d0d40543dd9427f7a"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/Jean85/pretty-package-versions/zipball/a917488320c20057da87f67d0d40543dd9427f7a",
                "reference": "a917488320c20057da87f67d0d40543dd9427f7a",
                "shasum": ""
            },
            "require": {
                "composer/package-versions-deprecated": "^1.8.0",
                "php": "^7.0|^8.0"
            },
            "require-dev": {
                "phpunit/phpunit": "^6.0|^8.5|^9.2"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.x-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Jean85\\": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Alessandro Lai",
                    "email": "alessandro.lai85@gmail.com"
                }
            ],
            "description": "A wrapper for ocramius/package-versions to get pretty versions strings",
            "keywords": [
                "composer",
                "package",
                "release",
                "versions"
            ],
            "support": {
                "issues": "https://github.com/Jean85/pretty-package-versions/issues",
                "source": "https://github.com/Jean85/pretty-package-versions/tree/1.5.1"
            },
            "time": "2020-09-14T08:43:34+00:00"
        },
        {
            "name": "justinrainbow/json-schema",
            "version": "5.2.10",
            "source": {


@@ 694,572 639,6 @@
            "time": "2020-11-13T09:40:50+00:00"
        },
        {
            "name": "nette/bootstrap",
            "version": "v3.0.2",
            "source": {
                "type": "git",
                "url": "https://github.com/nette/bootstrap.git",
                "reference": "67830a65b42abfb906f8e371512d336ebfb5da93"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/nette/bootstrap/zipball/67830a65b42abfb906f8e371512d336ebfb5da93",
                "reference": "67830a65b42abfb906f8e371512d336ebfb5da93",
                "shasum": ""
            },
            "require": {
                "nette/di": "^3.0",
                "nette/utils": "^3.0",
                "php": ">=7.1"
            },
            "conflict": {
                "tracy/tracy": "<2.6"
            },
            "require-dev": {
                "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",
                "phpstan/phpstan-nette": "^0.12",
                "tracy/tracy": "^2.6"
            },
            "suggest": {
                "nette/robot-loader": "to use Configurator::createRobotLoader()",
                "tracy/tracy": "to use Configurator::enableTracy()"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.0-dev"
                }
            },
            "autoload": {
                "classmap": [
                    "src/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause",
                "GPL-2.0-only",
                "GPL-3.0-only"
            ],
            "authors": [
                {
                    "name": "David Grudl",
                    "homepage": "https://davidgrudl.com"
                },
                {
                    "name": "Nette Community",
                    "homepage": "https://nette.org/contributors"
                }
            ],
            "description": "🅱 Nette Bootstrap: the simple way to configure and bootstrap your Nette application.",
            "homepage": "https://nette.org",
            "keywords": [
                "bootstrapping",
                "configurator",
                "nette"
            ],
            "support": {
                "issues": "https://github.com/nette/bootstrap/issues",
                "source": "https://github.com/nette/bootstrap/tree/master"
            },
            "time": "2020-05-26T08:46:23+00:00"
        },
        {
            "name": "nette/di",
            "version": "v3.0.5",
            "source": {
                "type": "git",
                "url": "https://github.com/nette/di.git",
                "reference": "766e8185196a97ded4f9128db6d79a3a124b7eb6"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/nette/di/zipball/766e8185196a97ded4f9128db6d79a3a124b7eb6",
                "reference": "766e8185196a97ded4f9128db6d79a3a124b7eb6",
                "shasum": ""
            },
            "require": {
                "ext-tokenizer": "*",
                "nette/neon": "^3.0",
                "nette/php-generator": "^3.3.3",
                "nette/robot-loader": "^3.2",
                "nette/schema": "^1.0",
                "nette/utils": "^3.1",
                "php": ">=7.1"
            },
            "conflict": {
                "nette/bootstrap": "<3.0"
            },
            "require-dev": {
                "nette/tester": "^2.2",
                "phpstan/phpstan": "^0.12",
                "tracy/tracy": "^2.3"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.0-dev"
                }
            },
            "autoload": {
                "classmap": [
                    "src/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause",
                "GPL-2.0-only",
                "GPL-3.0-only"
            ],
            "authors": [
                {
                    "name": "David Grudl",
                    "homepage": "https://davidgrudl.com"
                },
                {
                    "name": "Nette Community",
                    "homepage": "https://nette.org/contributors"
                }
            ],
            "description": "💎 Nette Dependency Injection Container: Flexible, compiled and full-featured DIC with perfectly usable autowiring and support for all new PHP 7.1 features.",
            "homepage": "https://nette.org",
            "keywords": [
                "compiled",
                "di",
                "dic",
                "factory",
                "ioc",
                "nette",
                "static"
            ],
            "support": {
                "issues": "https://github.com/nette/di/issues",
                "source": "https://github.com/nette/di/tree/master"
            },
            "time": "2020-08-13T13:04:23+00:00"
        },
        {
            "name": "nette/finder",
            "version": "v2.5.2",
            "source": {
                "type": "git",
                "url": "https://github.com/nette/finder.git",
                "reference": "4ad2c298eb8c687dd0e74ae84206a4186eeaed50"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/nette/finder/zipball/4ad2c298eb8c687dd0e74ae84206a4186eeaed50",
                "reference": "4ad2c298eb8c687dd0e74ae84206a4186eeaed50",
                "shasum": ""
            },
            "require": {
                "nette/utils": "^2.4 || ^3.0",
                "php": ">=7.1"
            },
            "conflict": {
                "nette/nette": "<2.2"
            },
            "require-dev": {
                "nette/tester": "^2.0",
                "phpstan/phpstan": "^0.12",
                "tracy/tracy": "^2.3"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "2.5-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 Finder: find files and directories with an intuitive API.",
            "homepage": "https://nette.org",
            "keywords": [
                "filesystem",
                "glob",
                "iterator",
                "nette"
            ],
            "support": {
                "issues": "https://github.com/nette/finder/issues",
                "source": "https://github.com/nette/finder/tree/v2.5.2"
            },
            "time": "2020-01-03T20:35:40+00:00"
        },
        {
            "name": "nette/neon",
            "version": "v3.2.1",
            "source": {
                "type": "git",
                "url": "https://github.com/nette/neon.git",
                "reference": "a5b3a60833d2ef55283a82d0c30b45d136b29e75"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/nette/neon/zipball/a5b3a60833d2ef55283a82d0c30b45d136b29e75",
                "reference": "a5b3a60833d2ef55283a82d0c30b45d136b29e75",
                "shasum": ""
            },
            "require": {
                "ext-iconv": "*",
                "ext-json": "*",
                "php": ">=7.1"
            },
            "require-dev": {
                "nette/tester": "^2.0",
                "phpstan/phpstan": "^0.12",
                "tracy/tracy": "^2.3"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.2-dev"
                }
            },
            "autoload": {
                "classmap": [
                    "src/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause",
                "GPL-2.0-only",
                "GPL-3.0-only"
            ],
            "authors": [
                {
                    "name": "David Grudl",
                    "homepage": "https://davidgrudl.com"
                },
                {
                    "name": "Nette Community",
                    "homepage": "https://nette.org/contributors"
                }
            ],
            "description": "🍸 Nette NEON: encodes and decodes NEON file format.",
            "homepage": "https://ne-on.org",
            "keywords": [
                "export",
                "import",
                "neon",
                "nette",
                "yaml"
            ],
            "support": {
                "issues": "https://github.com/nette/neon/issues",
                "source": "https://github.com/nette/neon/tree/master"
            },
            "time": "2020-07-31T12:28:05+00:00"
        },
        {
            "name": "nette/php-generator",
            "version": "v3.5.1",
            "source": {
                "type": "git",
                "url": "https://github.com/nette/php-generator.git",
                "reference": "fe54415cd22d01bee1307a608058bf131978610a"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/nette/php-generator/zipball/fe54415cd22d01bee1307a608058bf131978610a",
                "reference": "fe54415cd22d01bee1307a608058bf131978610a",
                "shasum": ""
            },
            "require": {
                "nette/utils": "^3.1.2",
                "php": ">=7.1"
            },
            "require-dev": {
                "nette/tester": "^2.0",
                "nikic/php-parser": "^4.4",
                "phpstan/phpstan": "^0.12",
                "tracy/tracy": "^2.3"
            },
            "suggest": {
                "nikic/php-parser": "to use ClassType::withBodiesFrom() & GlobalFunction::withBodyFrom()"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.5-dev"
                }
            },
            "autoload": {
                "classmap": [
                    "src/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause",
                "GPL-2.0-only",
                "GPL-3.0-only"
            ],
            "authors": [
                {
                    "name": "David Grudl",
                    "homepage": "https://davidgrudl.com"
                },
                {
                    "name": "Nette Community",
                    "homepage": "https://nette.org/contributors"
                }
            ],
            "description": "🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 7.4 features.",
            "homepage": "https://nette.org",
            "keywords": [
                "code",
                "nette",
                "php",
                "scaffolding"
            ],
            "support": {
                "issues": "https://github.com/nette/php-generator/issues",
                "source": "https://github.com/nette/php-generator/tree/v3.5.1"
            },
            "time": "2020-11-04T11:26:26+00:00"
        },
        {
            "name": "nette/robot-loader",
            "version": "v3.3.1",
            "source": {
                "type": "git",
                "url": "https://github.com/nette/robot-loader.git",
                "reference": "15c1ecd0e6e69e8d908dfc4cca7b14f3b850a96b"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/nette/robot-loader/zipball/15c1ecd0e6e69e8d908dfc4cca7b14f3b850a96b",
                "reference": "15c1ecd0e6e69e8d908dfc4cca7b14f3b850a96b",
                "shasum": ""
            },
            "require": {
                "ext-tokenizer": "*",
                "nette/finder": "^2.5 || ^3.0",
                "nette/utils": "^3.0",
                "php": ">=7.1"
            },
            "require-dev": {
                "nette/tester": "^2.0",
                "phpstan/phpstan": "^0.12",
                "tracy/tracy": "^2.3"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.3-dev"
                }
            },
            "autoload": {
                "classmap": [
                    "src/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause",
                "GPL-2.0-only",
                "GPL-3.0-only"
            ],
            "authors": [
                {
                    "name": "David Grudl",
                    "homepage": "https://davidgrudl.com"
                },
                {
                    "name": "Nette Community",
                    "homepage": "https://nette.org/contributors"
                }
            ],
            "description": "🍀 Nette RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.",
            "homepage": "https://nette.org",
            "keywords": [
                "autoload",
                "class",
                "interface",
                "nette",
                "trait"
            ],
            "support": {
                "issues": "https://github.com/nette/robot-loader/issues",
                "source": "https://github.com/nette/robot-loader/tree/v3.3.1"
            },
            "time": "2020-09-15T15:14:17+00:00"
        },
        {
            "name": "nette/schema",
            "version": "v1.0.2",
            "source": {
                "type": "git",
                "url": "https://github.com/nette/schema.git",
                "reference": "febf71fb4052c824046f5a33f4f769a6e7fa0cb4"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/nette/schema/zipball/febf71fb4052c824046f5a33f4f769a6e7fa0cb4",
                "reference": "febf71fb4052c824046f5a33f4f769a6e7fa0cb4",
                "shasum": ""
            },
            "require": {
                "nette/utils": "^3.1",
                "php": ">=7.1"
            },
            "require-dev": {
                "nette/tester": "^2.2",
                "phpstan/phpstan-nette": "^0.12",
                "tracy/tracy": "^2.3"
            },
            "type": "library",
            "extra": {
                "branch-alias": []
            },
            "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"
            ],
            "support": {
                "issues": "https://github.com/nette/schema/issues",
                "source": "https://github.com/nette/schema/tree/v1.0.2"
            },
            "time": "2020-01-06T22:52:48+00:00"
        },
        {
            "name": "nette/utils",
            "version": "v3.1.3",
            "source": {
                "type": "git",
                "url": "https://github.com/nette/utils.git",
                "reference": "c09937fbb24987b2a41c6022ebe84f4f1b8eec0f"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/nette/utils/zipball/c09937fbb24987b2a41c6022ebe84f4f1b8eec0f",
                "reference": "c09937fbb24987b2a41c6022ebe84f4f1b8eec0f",
                "shasum": ""
            },
            "require": {
                "php": ">=7.1"
            },
            "require-dev": {
                "nette/tester": "~2.0",
                "phpstan/phpstan": "^0.12",
                "tracy/tracy": "^2.3"
            },
            "suggest": {
                "ext-gd": "to use Image",
                "ext-iconv": "to use Strings::webalize(), toAscii(), chr() and reverse()",
                "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-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()",
                "ext-xml": "to use Strings::length() etc. when mbstring is not available"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.1-dev"
                }
            },
            "autoload": {
                "classmap": [
                    "src/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause",
                "GPL-2.0-only",
                "GPL-3.0-only"
            ],
            "authors": [
                {
                    "name": "David Grudl",
                    "homepage": "https://davidgrudl.com"
                },
                {
                    "name": "Nette Community",
                    "homepage": "https://nette.org/contributors"
                }
            ],
            "description": "🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.",
            "homepage": "https://nette.org",
            "keywords": [
                "array",
                "core",
                "datetime",
                "images",
                "json",
                "nette",
                "paginator",
                "password",
                "slugify",
                "string",
                "unicode",
                "utf-8",
                "utility",
                "validation"
            ],
            "support": {
                "issues": "https://github.com/nette/utils/issues",
                "source": "https://github.com/nette/utils/tree/v3.1.3"
            },
            "time": "2020-08-07T10:34:21+00:00"
        },
        {
            "name": "nikic/php-parser",
            "version": "v4.10.2",
            "source": {


@@ 1914,123 1293,39 @@
            "time": "2020-03-05T15:02:03+00:00"
        },
        {
            "name": "phpstan/phpdoc-parser",
            "version": "0.3.5",
            "source": {
                "type": "git",
                "url": "https://github.com/phpstan/phpdoc-parser.git",
                "reference": "8c4ef2aefd9788238897b678a985e1d5c8df6db4"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/8c4ef2aefd9788238897b678a985e1d5c8df6db4",
                "reference": "8c4ef2aefd9788238897b678a985e1d5c8df6db4",
                "shasum": ""
            },
            "require": {
                "php": "~7.1"
            },
            "require-dev": {
                "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": "^4.7.2",
                "squizlabs/php_codesniffer": "^3.3.2",
                "symfony/process": "^3.4 || ^4.0"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "0.3-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "PHPStan\\PhpDocParser\\": [
                        "src/"
                    ]
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "description": "PHPDoc parser with support for nullable, intersection and generic types",
            "support": {
                "issues": "https://github.com/phpstan/phpdoc-parser/issues",
                "source": "https://github.com/phpstan/phpdoc-parser/tree/master"
            },
            "time": "2019-06-07T19:13:52+00:00"
        },
        {
            "name": "phpstan/phpstan",
            "version": "0.11.20",
            "version": "0.12.57",
            "source": {
                "type": "git",
                "url": "https://github.com/phpstan/phpstan.git",
                "reference": "938dcc03a005280e1a9587ec7684345bff06ebfc"
                "reference": "f9909d1d0c44b4cbaf72babcf80e8f14d6fdd55b"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/938dcc03a005280e1a9587ec7684345bff06ebfc",
                "reference": "938dcc03a005280e1a9587ec7684345bff06ebfc",
                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/f9909d1d0c44b4cbaf72babcf80e8f14d6fdd55b",
                "reference": "f9909d1d0c44b4cbaf72babcf80e8f14d6fdd55b",
                "shasum": ""
            },
            "require": {
                "composer/xdebug-handler": "^1.3.0",
                "jean85/pretty-package-versions": "^1.0.3",
                "nette/bootstrap": "^2.4 || ^3.0",
                "nette/di": "^2.4.7 || ^3.0",
                "nette/neon": "^2.4.3 || ^3.0",
                "nette/robot-loader": "^3.0.1",
                "nette/schema": "^1.0",
                "nette/utils": "^2.4.5 || ^3.0",
                "nikic/php-parser": "^4.2.3",
                "php": "~7.1",
                "phpstan/phpdoc-parser": "^0.3.5",
                "symfony/console": "~3.2 || ~4.0",
                "symfony/finder": "~3.2 || ~4.0"
                "php": "^7.1|^8.0"
            },
            "conflict": {
                "symfony/console": "3.4.16 || 4.1.5"
            },
            "require-dev": {
                "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",
                "localheinz/composer-normalize": "^1.1.0",
                "phing/phing": "^2.16.0",
                "phpstan/phpstan-deprecation-rules": "^0.11",
                "phpstan/phpstan-php-parser": "^0.11",
                "phpstan/phpstan-phpunit": "^0.11",
                "phpstan/phpstan-strict-rules": "^0.11",
                "phpunit/phpunit": "^7.5.14 || ^8.0",
                "slevomat/coding-standard": "^4.7.2",
                "squizlabs/php_codesniffer": "^3.3.2"
                "phpstan/phpstan-shim": "*"
            },
            "bin": [
                "bin/phpstan"
                "phpstan",
                "phpstan.phar"
            ],
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "0.11-dev"
                    "dev-master": "0.12-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "PHPStan\\": [
                        "src/"
                    ]
                }
                "files": [
                    "bootstrap.php"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [


@@ 2039,7 1334,7 @@
            "description": "PHPStan - PHP Static Analysis Tool",
            "support": {
                "issues": "https://github.com/phpstan/phpstan/issues",
                "source": "https://github.com/phpstan/phpstan/tree/0.11.20"
                "source": "https://github.com/phpstan/phpstan/tree/0.12.57"
            },
            "funding": [
                {


@@ 2055,45 1350,44 @@
                    "type": "tidelift"
                }
            ],
            "time": "2020-10-12T14:33:05+00:00"
            "time": "2020-11-21T12:53:28+00:00"
        },
        {
            "name": "phpstan/phpstan-phpunit",
            "version": "0.11.2",
            "version": "0.12.16",
            "source": {
                "type": "git",
                "url": "https://github.com/phpstan/phpstan-phpunit.git",
                "reference": "fbf2ad56c3b13189d29655e226c9b1da47c2fad9"
                "reference": "1dd916d181b0539dea5cd37e91546afb8b107e17"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/fbf2ad56c3b13189d29655e226c9b1da47c2fad9",
                "reference": "fbf2ad56c3b13189d29655e226c9b1da47c2fad9",
                "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/1dd916d181b0539dea5cd37e91546afb8b107e17",
                "reference": "1dd916d181b0539dea5cd37e91546afb8b107e17",
                "shasum": ""
            },
            "require": {
                "nikic/php-parser": "^4.0",
                "php": "~7.1",
                "phpstan/phpdoc-parser": "^0.3",
                "phpstan/phpstan": "^0.11.4"
                "php": "^7.1 || ^8.0",
                "phpstan/phpstan": "^0.12.33"
            },
            "conflict": {
                "phpunit/phpunit": "<7.0"
            },
            "require-dev": {
                "consistence/coding-standard": "^3.0.1",
                "dealerdirect/phpcodesniffer-composer-installer": "^0.4.4",
                "consistence/coding-standard": "^3.5",
                "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
                "ergebnis/composer-normalize": "^2.0.2",
                "jakub-onderka/php-parallel-lint": "^1.0",
                "phing/phing": "^2.16.0",
                "phpstan/phpstan-strict-rules": "^0.11",
                "phpunit/phpunit": "^7.0",
                "phpstan/phpstan-strict-rules": "^0.12",
                "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0",
                "satooshi/php-coveralls": "^1.0",
                "slevomat/coding-standard": "^4.5.2"
                "slevomat/coding-standard": "^4.7.2"
            },
            "type": "phpstan-extension",
            "extra": {
                "branch-alias": {
                    "dev-master": "0.11-dev"
                    "dev-master": "0.12-dev"
                },
                "phpstan": {
                    "includes": [


@@ 2114,42 1408,42 @@
            "description": "PHPUnit extensions and rules for PHPStan",
            "support": {
                "issues": "https://github.com/phpstan/phpstan-phpunit/issues",
                "source": "https://github.com/phpstan/phpstan-phpunit/tree/0.11.2"
                "source": "https://github.com/phpstan/phpstan-phpunit/tree/0.12.16"
            },
            "time": "2019-05-17T17:50:16+00:00"
            "time": "2020-08-05T13:28:50+00:00"
        },
        {
            "name": "phpstan/phpstan-strict-rules",
            "version": "0.11.1",
            "version": "0.12.5",
            "source": {
                "type": "git",
                "url": "https://github.com/phpstan/phpstan-strict-rules.git",
                "reference": "a203a7afdda073d4ea405a6d9007a5b32de3be61"
                "reference": "334898a32217e4605e0f9cfa3d3fc3101bda26be"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/a203a7afdda073d4ea405a6d9007a5b32de3be61",
                "reference": "a203a7afdda073d4ea405a6d9007a5b32de3be61",
                "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/334898a32217e4605e0f9cfa3d3fc3101bda26be",
                "reference": "334898a32217e4605e0f9cfa3d3fc3101bda26be",
                "shasum": ""
            },
            "require": {
                "nikic/php-parser": "^4.0",
                "php": "~7.1",
                "phpstan/phpstan": "^0.11.4"
                "php": "^7.1 || ^8.0",
                "phpstan/phpstan": "^0.12.33"
            },
            "require-dev": {
                "consistence/coding-standard": "^3.0.1",
                "dealerdirect/phpcodesniffer-composer-installer": "^0.4.4",
                "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
                "ergebnis/composer-normalize": "^2.0.2",
                "jakub-onderka/php-parallel-lint": "^1.0",
                "phing/phing": "^2.16.0",
                "phpstan/phpstan-phpunit": "^0.11",
                "phpstan/phpstan-phpunit": "^0.12",
                "phpunit/phpunit": "^7.0",
                "slevomat/coding-standard": "^4.5.2"
            },
            "type": "phpstan-extension",
            "extra": {
                "branch-alias": {
                    "dev-master": "0.11-dev"
                    "dev-master": "0.12-dev"
                },
                "phpstan": {
                    "includes": [


@@ 2169,9 1463,9 @@
            "description": "Extra strict and opinionated rules for PHPStan",
            "support": {
                "issues": "https://github.com/phpstan/phpstan-strict-rules/issues",
                "source": "https://github.com/phpstan/phpstan-strict-rules/tree/0.11.1"
                "source": "https://github.com/phpstan/phpstan-strict-rules/tree/master"
            },
            "time": "2019-05-12T16:59:47+00:00"
            "time": "2020-08-30T15:42:06+00:00"
        },
        {
            "name": "phpunit/php-code-coverage",

M src/StringStream.php => src/StringStream.php +1 -1
@@ 271,7 271,7 @@ class StringStream implements StreamInterface
     *
     * @link http://php.net/manual/en/function.stream-get-meta-data.php
     * @param string $key Specific metadata to retrieve.
     * @return array|null Returns an associative array if no key is
     * @return array<mixed>|null Returns an associative array if no key is
     *     provided. Returns a specific key value if a key is provided and the
     *     value is found, or null if the key is not found.
     */