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

"Cannot use OwenIt\Auditing\Contracts\Auditable as Auditable because the name is already in use" #371

Closed
IgorDePaula opened this issue Jan 18, 2018 · 2 comments
Labels
duplicate A repeated issue or entry

Comments

@IgorDePaula
Copy link

Q A
Bug? yes
New Feature? no
Framework Laravel
Framework version 5.5.31
Package version 5.0.1
PHP version 7.0.10

Actual Behaviour

Describe the behaviour you're experiencing. Do not just copy and paste a random error message and expect help.

"Cannot use OwenIt\Auditing\Contracts\Auditable as Auditable because the name is already in use"

Expected Behaviour

None, its work
Describe the behaviour you're expecting.
On run the sysm, I receive this message:

"Cannot use OwenIt\Auditing\Contracts\Auditable as Auditable because the name is already in use"

Steps to Reproduce

Install the package and run the system

erro laravel

Possible Solutions

Separete the namespaces or another named the coflicting classes.

Has trait named Auditable on namespace root, on AuditableOberver use another classe with same name. Alias the classes/traits is a good idea.

@IgorDePaula
Copy link
Author

Now, is another class

erro laravel 2

@quetzyg quetzyg added the duplicate A repeated issue or entry label Jan 18, 2018
@quetzyg
Copy link
Contributor

quetzyg commented Jan 18, 2018

This has been discussed in #354. You have to upgrade to PHP 7.0.13.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate A repeated issue or entry
Projects
None yet
Development

No branches or pull requests

2 participants