Page MenuHomeDevCentral

Align access levels for GateController::getServiceName()
Closed, ResolvedPublic

Description

rNOTIF57e8fae268ce declared getServiceName as public, but it's protected in NotificationGate (and public everywhere else).

WindRiver
$ ant
[…]
  [phpunit] Generating code coverage report in Clover XML format ...
  [phpunit] Fatal error: Access level to Nasqueron\Notifications\Http\Controllers\Gate\NotificationGateController::getServiceName() must be public (as in class Nasqueron\Notifications\Http\Controllers\Gate\GateController)
in /usr/home/dereckson/dev/nasqueron/notifications/notifications/app/Http/Controllers/Gate/NotificationGateController.php on line 74
  [phpunit]
  [phpunit] Fatal error: Uncaught Illuminate\Contracts\Container\BindingResolutionException: Target [Illuminate\Contracts\Debug\ExceptionHandler] is not instantiable. in /usr/home/dereckson/dev/nasqueron/notifications/noti
fications/vendor/laravel/framework/src/Illuminate/Container/Container.php:1103
  [phpunit] Stack trace:
  [phpunit] #0 /usr/home/dereckson/dev/nasqueron/notifications/notifications/vendor/laravel/framework/src/Illuminate/Container/Container.php(898): Illuminate\Container\Container->notInstantiable('Illuminate\\Cont...')
  [phpunit] #1 /usr/home/dereckson/dev/nasqueron/notifications/notifications/vendor/laravel/framework/src/Illuminate/Container/Container.php(770): Illuminate\Container\Container->build('Illuminate\\Cont...')
  [phpunit] #2 /usr/home/dereckson/dev/nasqueron/notifications/notifications/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(856): Illuminate\Container\Container->resolve('Illuminate\\Cont...', Array, tr
ue)
  [phpunit] #3 /usr/home/dereckson/dev/nasqueron/notifications/notifications/vendor/laravel/framework/src/Illuminate/Container/Container.php(706): Illuminate\Foundation\Application->resolve('Illuminate\\Cont...', Array)
  [phpunit] #4 /usr/home/dereckson/dev/nasqueron/notifications/notifications/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(841): Illuminate\Container\Container->make('Illuminate\\Cont...', Array)
  [phpunit] #5 /usr/home/dereckson/dev/nasqueron/notifications/notifications/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(299): Illuminate\Foundation\Application->make('Illuminate\\Cont
...')
  [phpunit] #6 /usr/home/dereckson/dev/nasqueron/notifications/notifications/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(218): Illuminate\Foundation\Bootstrap\HandleExceptions->getExce
ptionHandler()
  [phpunit] #7 /usr/home/dereckson/dev/nasqueron/notifications/notifications/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(204): Illuminate\Foundation\Bootstrap\HandleExceptions->renderF
orConsole(Object(Illuminate\Contracts\Container\BindingResolutionException))
  [phpunit] #8 /usr/home/dereckson/dev/nasqueron/notifications/notifications/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(242): Illuminate\Foundation\Bootstrap\HandleExceptions->handleE
xception(Object(Illuminate\Contracts\Container\BindingResolutionException))
  [phpunit] #9 /usr/home/dereckson/dev/nasqueron/notifications/notifications/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(266): Illuminate\Foundation\Bootstrap\HandleExceptions->handleS
hutdown()
  [phpunit] #10 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()
  [phpunit] #11 {main}
  [phpunit]   thrown in /usr/home/dereckson/dev/nasqueron/notifications/notifications/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1103
  [phpunit] Result: 255
[…]