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

Check if DonatjUAParser primitive functions are loaded instead of che… #60

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Temporary Items
.buildpath
build
.project
.idea
.tmp
.php_cs.cache
composer.lock
2 changes: 1 addition & 1 deletion src/Provider/DonatjUAParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class DonatjUAParser extends AbstractProvider

public function __construct()
{
if (! file_exists('vendor/' . $this->getPackageName() . '/composer.json')) {
if (! function_exists('parse_user_agent')) {
throw new PackageNotLoadedException('You need to install the package ' . $this->getPackageName() . ' to use this provider');
}
}
Expand Down