dingo / api

A RESTful API package for the Laravel and Lumen frameworks.
BSD 3-Clause "New" or "Revised" License
9.33k stars 1.25k forks source link

Class Dingo\Api\Exception\Handler contains 1 abstract method and must therefore be declared abstract or implement #1633

Closed denept closed 5 years ago

denept commented 5 years ago

Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 0 installs, 2 updates, 0 removals

In Handler.php line 16:

Class Dingo\Api\Exception\Handler contains 1 abstract method and must therefore be declared abstract or imple he remaining methods (Illuminate\Contracts\Debug\ExceptionHandler::shouldReport)

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255 PS D:\qampp\htdocs\project\kindleNeptune_server> composer update Loading composer repositories with package information Updating dependencies (including require-dev) Nothing to install or update Generating optimized autoload files

Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover --ansi

In Handler.php line 16:

Class Dingo\Api\Exception\Handler contains 1 abstract method and must therefore be declared abstract or imple he remaining methods (Illuminate\Contracts\Debug\ExceptionHandler::shouldReport)

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255

specialtactics commented 5 years ago

Hi @denept please update your dingo package version to latest.

SOSTheBlack commented 5 years ago

update the package version (Y) "dingo/api": "^2.1",

ellisio commented 5 years ago

@specialtactics Someone needs to update the wiki. People are having this happening because the following is on the Installation page:

"require": {
    "dingo/api": "2.0.0-beta1"
}
specialtactics commented 5 years ago

Thanks @ellisio - updated!

php-writerman commented 4 years ago

@specialtactics Is it possible to add shouldReport method in 2.0.0-alpha2 version?

specialtactics commented 4 years ago

Sorry @php-writerman that version is super old and is no longer supported. If you would like, there's nothing stopping you from making your own fork of that older version and implementing this fix there, until you update.