We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<?php class MyCommandResult extends \Consolidation\AnnotatedCommand\CommandResult { }
<?php class RoboFile extends \Robo\Tasks { /** * @command foo */ public function foo(): MyCommandResult { $myData = []; return MyCommandResult::data($myData); } }
Use new static(); instead of new self();
new static();
new self();
annotated-command/src/CommandResult.php
Line 44 in f105aef
Error message:
Return value is expected to be 'MyCommandResult', 'Consolidation\AnnotatedCommand\CommandResult' returned
The text was updated successfully, but these errors were encountered:
Issue consolidation#258 - CommandResult inheritance
a3014ca
Issue #258 - CommandResult inheritance (#259)
ff9ba1e
a4129f7
Issue #258 - CommandResult inheritance (#260)
f827624
No branches or pull requests
Steps to reproduce
Expected behavior
Use
new static();
instead ofnew self();
annotated-command/src/CommandResult.php
Line 44 in f105aef
Actual behavior
Error message:
The text was updated successfully, but these errors were encountered: