You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unexpected token in the TestController before App\Aspect\FooAspect->introduction, defined in projectroot/app/Aspect/FooAspect.php:0. Expected one of: ->, nsSeparator, )
class TestController extends Controller {
public function index() {
echo 'foo';
}
}
Interface
Interface FooInterface {
public function foo ();
}
Trait
trait FooImpl {
public function foo() {
echo 'foo';
}
}
The text was updated successfully, but these errors were encountered:
Yoshiro-Sasagawa
changed the title
Declareparents annotation
Declareparents annotation throws UnexpectedValueException
May 29, 2021
Yoshiro-Sasagawa
changed the title
Declareparents annotation throws UnexpectedValueException
@Declareparents annotation throws UnexpectedValueException
May 29, 2021
I'm trying to use inter-type declarations with this nice package but I can't make it work and almost gave up unfortunately.
I've read the documentation of original framework at http://go.aopphp.com/docs/pointcuts-and-advices/ then I wrote some codes but I've got
UnexpectedValueException
like following.Unexpected token in the TestController before App\Aspect\FooAspect->introduction, defined in projectroot/app/Aspect/FooAspect.php:0. Expected one of: ->, nsSeparator, )
Go\Core\AbstractAspectLoaderExtension::parseTokenStream vendor/goaop/framework/src/Core/AbstractAspectLoaderExtension.php:139
I dig into
jakubledl/dissect
package that throws actual error and it says "$eof is undefind" but I can't figure out what that means exactly.Another example like
@LoggerInterface
annotation works fine as it was documented.However, does
@Declareparents
work with laravel ?My envornment is like
Aspect
Controller
Interface
Trait
The text was updated successfully, but these errors were encountered: