sebastianbergmann / php-code-coverage

Library that provides collection, processing, and rendering functionality for PHP code coverage information.
BSD 3-Clause "New" or "Revised" License
8.8k stars 373 forks source link

Declaration not compatible for DummyCodeCoverage::stop #568

Closed jairusmartin closed 6 years ago

jairusmartin commented 6 years ago
Q A
php-code-coverage version x.y.z
PHP version 7.0.10
Driver Xdebug
Xdebug version (if used) 2.5.4
Installation Method Composer
Usage Method PHPUnit
PHPUnit version (if used) 6.4.4

Composer Update I performed composer update which updated phpunit/php-code-coverage (5.2.4 => 5.3.0). I received no error for phpunit/php-code-coverage v5.2.4.

Codecept CodeCoverage I executed the following command: codecept run --coverage-html

Error I received the below error:

In DummyCodeCoverage.php line 13:

  Declaration of Codeception\Coverage\DummyCodeCoverage::stop($append = true, $linesToBeCovered = Array, array $linesToBeUsed = Array) should be compatible with SebastianBergmann\CodeCoverage\CodeC
  overage::stop($append = true, $linesToBeCovered = Array, array $linesToBeUsed = Array, $ignoreForceCoversAnnotation = false)
jairusmartin commented 6 years ago

Composer Log

adldap2/adldap2                      v7.0.15            A PHP LDAP Package for Active Directory Manipulation.
bausch/yii2-lot-inquiry              dev-master 5c42fa0 Allows for a custom ticket drill down (i.e. select process->which machine etc.)
bausch/yii2-shipping                 dev-master 076186b Checks scanned containers against order.
bausch/yii2-silsoft                  dev-master 7e9ef84 To be done...
bausch/yii2-ticket                   v1.2.1             Allows for a custom ticket drill down (i.e. select process->which machine etc.)
behat/gherkin                        v4.4.5             Gherkin DSL parser for PHP 5.3
bower-asset/bootstrap                v3.3.7             The most popular front-end framework for developing responsive, mobile first projects on the web.
bower-asset/highcharts               v6.0.3
bower-asset/inputmask                3.3.11             Inputmask is a javascript library which creates an input mask.  Inputmask can run against vanilla javascript, jQuery and jqlite.
bower-asset/jquery                   3.2.1
bower-asset/jquery-ui                1.12.1
bower-asset/moment                   2.19.3
bower-asset/punycode                 v1.3.2
bower-asset/typeahead.js             v0.11.1
bower-asset/vis                      v4.21.0            A dynamic, browser-based visualization library.
bower-asset/yii2-pjax                2.0.7.1
cebe/markdown                        1.1.2              A super fast, highly extensible markdown parser for PHP
codeception/base                     2.3.6              BDD-style testing framework
codeception/verify                   0.3.3              BDD assertion library for PHPUnit
codemix/yii2-excelexport             2.5.0              A utility to quickly create Excel files from query results or raw data
conquer/momentjs                     1.0.2              Yii2 momentjs widget
doctrine/inflector                   v1.2.0             Common String Manipulations with regard to casing and singular/plural rules.
doctrine/instantiator                1.0.5              A small, lightweight utility to instantiate objects in PHP without invoking their constructors
edvlerblog/yii2-adldap-module        v3.0.5             yii2 Active Directory implementation (wrapper for Adldap2)
ezyang/htmlpurifier                  v4.9.3             Standards compliant HTML filter written in PHP
faryshta/yii2-disable-submit-buttons 1.0.0              Yii2 asset to automatically disable submit buttons on Yii2 ActiveForm.
fxp/composer-asset-plugin            v1.4.2             NPM/Bower Dependency Manager for Composer
fzaninotto/faker                     v1.7.1             Faker is a PHP library that generates fake data for you.
guzzlehttp/guzzle                    6.3.0              Guzzle is a PHP HTTP client library
guzzlehttp/promises                  v1.3.1             Guzzle promises library
guzzlehttp/psr7                      1.4.2              PSR-7 message implementation that also provides common utility methods
illuminate/contracts                 v5.5.17            The Illuminate Contracts package.
illuminate/support                   v5.5.17            The Illuminate Support package.
mdmsoft/yii2-admin                   2.8                RBAC Auth manager for Yii2
mikehaertl/php-tmpfile               1.1.1              A convenience class for temporary files
miloschuman/yii2-highcharts-widget   dev-master 19d205b Highcharts widget for Yii 2 Framework.
mpdf/mpdf                            7.0.2              A PHP class to generate PDF files from HTML with Unicode/UTF-8 and CJK support
myclabs/deep-copy                    1.7.0              Create deep copies (clones) of your objects
nesbot/carbon                        1.22.1             A simple API extension for DateTime.
paragonie/random_compat              v2.0.11            PHP 5.x polyfill for random_bytes() and random_int() from PHP 7
phar-io/manifest                     1.0.1              Component for reading phar.io manifest information from a PHP Archive (PHAR)
phar-io/version                      1.0.1              Library for handling version information and constraints
phpdocumentor/reflection-common      1.0.1              Common reflection classes used by phpdocumentor to reflect the code structure
phpdocumentor/reflection-docblock    4.2.0              With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a D...
phpdocumentor/type-resolver          0.4.0
phpoffice/phpexcel                   1.8.1              PHPExcel - OpenXML - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine
phpspec/php-diff                     v1.1.0             A comprehensive library for generating differences between two hashable objects (strings or arrays).
phpspec/prophecy                     1.7.3              Highly opinionated mocking framework for PHP 5.3+
phpunit/php-code-coverage            5.3.0              Library that provides collection, processing, and rendering functionality for PHP code coverage information.
phpunit/php-file-iterator            1.4.5              FilterIterator implementation that filters files based on a list of suffixes.
phpunit/php-text-template            1.2.1              Simple template engine.
phpunit/php-timer                    1.0.9              Utility class for timing
phpunit/php-token-stream             2.0.2              Wrapper around PHP's tokenizer extension.
phpunit/phpunit                      6.4.4              The PHP Unit Testing framework.
phpunit/phpunit-mock-objects         4.0.4              Mock Object library for PHPUnit
psr/container                        1.0.0              Common Container Interface (PHP FIG PSR-11)
psr/http-message                     1.0.1              Common interface for HTTP messages
psr/log                              1.0.2              Common interface for logging libraries
psr/simple-cache                     1.0.0              Common interfaces for simple caching
robregonm/yii2-pdf                   1.0.1              Yii 2 PDF Response Formatter
sammaye/yii2-audittrail              1.2.0              A port of audit trail
sebastian/code-unit-reverse-lookup   1.0.1              Looks up which function or method a line of code belongs to
sebastian/comparator                 2.1.0              Provides the functionality to compare PHP values for equality
sebastian/diff                       2.0.1              Diff implementation
sebastian/environment                3.1.0              Provides functionality to handle HHVM/PHP environments
sebastian/exporter                   3.1.0              Provides the functionality to export PHP variables for visualization
sebastian/global-state               2.0.0              Snapshotting of global state
sebastian/object-enumerator          3.0.3              Traverses array structures and object graphs to enumerate all referenced objects
sebastian/object-reflector           1.1.1              Allows reflection of object attributes, including inherited and non-public ones
sebastian/recursion-context          3.0.0              Provides functionality to recursively process PHP variables
sebastian/resource-operations        1.0.0              Provides a list of PHP built-in functions that operate on resources
sebastian/version                    2.0.1              Library that helps with managing the version number of Git-hosted PHP projects
setasign/fpdi                        1.6.2              FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF. B...
stecman/symfony-console-completion   0.7.0              Automatic BASH completion for Symfony Console Component based applications.
swiftmailer/swiftmailer              v5.4.8             Swiftmailer, free feature-rich PHP mailer
symfony/browser-kit                  v3.4.1             Symfony BrowserKit Component
symfony/console                      v3.4.1             Symfony Console Component
symfony/css-selector                 v3.4.1             Symfony CssSelector Component
symfony/debug                        v3.4.1             Symfony Debug Component
symfony/dom-crawler                  v3.4.1             Symfony DomCrawler Component
symfony/event-dispatcher             v3.4.1             Symfony EventDispatcher Component
symfony/finder                       v3.4.1             Symfony Finder Component
symfony/polyfill-mbstring            v1.6.0             Symfony polyfill for the Mbstring extension
symfony/translation                  v3.4.1             Symfony Translation Component
symfony/yaml                         v3.4.1             Symfony Yaml Component
theseer/tokenizer                    1.1.0              A small library for converting tokenized PHP source code into XML and potentially other formats
wbraganca/yii2-dynamicform           v2.0.2             It is widget to yii2 framework to clone form elements in a nested manner, maintaining accessibility.
webmozart/assert                     1.2.0              Assertions to validate method input/output with nice error messages.
yiisoft/yii2                         2.0.13.1           Yii PHP Framework Version 2
yiisoft/yii2-bootstrap               2.0.7              The Twitter Bootstrap extension for the Yii framework
yiisoft/yii2-composer                2.0.5              The composer plugin for Yii extension installer
yiisoft/yii2-debug                   2.0.13             The debugger extension for the Yii framework
yiisoft/yii2-faker                   2.0.3              Fixture generator. The Faker integration for the Yii framework.
yiisoft/yii2-gii                     2.0.5              The Gii extension for the Yii framework
yiisoft/yii2-httpclient              2.0.5              HTTP client extension for the Yii framework
yiisoft/yii2-jui                     2.0.7              The Jquery UI extension for the Yii framework
yiisoft/yii2-swiftmailer             2.0.7              The SwiftMailer integration for the Yii framework
sebastianbergmann commented 6 years ago

The addition of an optional argument to the signature of a method is a backward-compatible change in my opinion. It seems that PHP disagrees and Codeception needs to be updated. Sorry about that.

jairusmartin commented 6 years ago

No worries. For now, I have simply specified the previous version.

-Jairus

On Wed, Dec 6, 2017 at 10:43 PM, Sebastian Bergmann < notifications@github.com> wrote:

The addition of an optional argument to the signature of a method is a backward-compatible change in my opinion. It seems that PHP disagrees and Codeception needs to be updated. Sorry about that.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sebastianbergmann/php-code-coverage/issues/568#issuecomment-349854219, or mute the thread https://github.com/notifications/unsubscribe-auth/APIMnnZ440xrtDvZYSIG3uOEAPn5g2p9ks5s917ygaJpZM4Q4VXQ .