Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error during bin/chapi scheduling #63

Closed
andygrunwald opened this issue Dec 15, 2016 · 0 comments
Closed

Fatal error during bin/chapi scheduling #63

andygrunwald opened this issue Dec 15, 2016 · 0 comments
Assignees
Labels

Comments

@andygrunwald
Copy link
Contributor

andygrunwald commented Dec 15, 2016

I saw this fatal error (on current master)

➜  chapi git:(master) bin/chapi scheduling
PHP Fatal error:  Uncaught TypeError: Argument 1 passed to Chapi\Entity\Chronos\JobStatsEntity::__construct() must be of the type array, object given, called in /Users/andygrunwald/Development/chapi/src/Service/Chronos/JobStatsService.php on line 66 and defined in /Users/andygrunwald/Development/chapi/src/Entity/Chronos/JobStatsEntity.php:28
Stack trace:
#0 /Users/andygrunwald/Development/chapi/src/Service/Chronos/JobStatsService.php(66): Chapi\Entity\Chronos\JobStatsEntity->__construct(Object(stdClass))
#1 /Users/andygrunwald/Development/chapi/src/Commands/SchedulingViewCommand.php(111): Chapi\Service\Chronos\JobStatsService->getJobStats('Bluekai-FillRed...')
#2 /Users/andygrunwald/Development/chapi/src/Commands/SchedulingViewCommand.php(82): Chapi\Commands\SchedulingViewCommand->printTimeLineTable(1481793861, 1481801061)
#3 /Users/andygrunwald/Development/chapi/src/Commands/AbstractCommand.php(78): Chapi\Commands\SchedulingViewCommand->process()
#4 /Users/andygrunwald/Development/chapi/vendor/symfony/console/Command/Command. in /Users/andygrunwald/Development/chapi/src/Entity/Chronos/JobStatsEntity.php on line 28

Fatal error: Uncaught TypeError: Argument 1 passed to Chapi\Entity\Chronos\JobStatsEntity::__construct() must be of the type array, object given, called in /Users/andygrunwald/Development/chapi/src/Service/Chronos/JobStatsService.php on line 66 and defined in /Users/andygrunwald/Development/chapi/src/Entity/Chronos/JobStatsEntity.php on line 28

TypeError: Argument 1 passed to Chapi\Entity\Chronos\JobStatsEntity::__construct() must be of the type array, object given, called in /Users/andygrunwald/Development/chapi/src/Service/Chronos/JobStatsService.php on line 66 in /Users/andygrunwald/Development/chapi/src/Entity/Chronos/JobStatsEntity.php on line 28

Call Stack:
    0.0002     355120   1. {main}() /Users/andygrunwald/Development/chapi/bin/chapi:0
    0.0093    1669400   2. Symfony\Component\Console\Application->run() /Users/andygrunwald/Development/chapi/bin/chapi:12
    0.0113    1965832   3. Symfony\Component\Console\Application->doRun() /Users/andygrunwald/Development/chapi/vendor/symfony/console/Application.php:118
    0.0114    1965832   4. Symfony\Component\Console\Application->doRunCommand() /Users/andygrunwald/Development/chapi/vendor/symfony/console/Application.php:187
    0.0114    1965832   5. Symfony\Component\Console\Command\Command->run() /Users/andygrunwald/Development/chapi/vendor/symfony/console/Application.php:820
    0.0116    1968408   6. Chapi\Commands\AbstractCommand->execute() /Users/andygrunwald/Development/chapi/vendor/symfony/console/Command/Command.php:254
    0.0749    3038280   7. Chapi\Commands\SchedulingViewCommand->process() /Users/andygrunwald/Development/chapi/src/Commands/AbstractCommand.php:78
    0.1031    3999464   8. Chapi\Commands\SchedulingViewCommand->printTimeLineTable() /Users/andygrunwald/Development/chapi/src/Commands/SchedulingViewCommand.php:82
    0.3782    4846032   9. Chapi\Service\Chronos\JobStatsService->getJobStats() /Users/andygrunwald/Development/chapi/src/Commands/SchedulingViewCommand.php:111
    0.4640    4850128  10. Chapi\Entity\Chronos\JobStatsEntity->__construct() /Users/andygrunwald/Development/chapi/src/Service/Chronos/JobStatsService.php:66

Will try to write a unit test and fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant