Skip to main content
added 28 characters in body
Source Link
Jaypan
  • 18k
  • 3
  • 34
  • 65

The problem is that your use declaration is conflicting withincorrect, and is causing your call to the client to look in the codewrong namespace. You probably need to change this:

use cvr\src\Cvrapi\CVRClient;

To this:

use Cvrapi\CVRClient;

And change this:

$result = \Cvrapi\CVRClient::request('29910251', 'dk', 'vat', 'Unit Testing');

To this:

$result = CVRClient::request('29910251', 'dk', 'vat', 'Unit Testing');

The problem is that your use declaration is conflicting with your call to the client in the code. You probably need to change this:

use cvr\src\Cvrapi\CVRClient;

To this:

use Cvrapi\CVRClient;

And change this:

$result = \Cvrapi\CVRClient::request('29910251', 'dk', 'vat', 'Unit Testing');

To this:

$result = CVRClient::request('29910251', 'dk', 'vat', 'Unit Testing');

The problem is that your use declaration is incorrect, and is causing your call to the client to look in the wrong namespace. You probably need to change this:

use cvr\src\Cvrapi\CVRClient;

To this:

use Cvrapi\CVRClient;

And change this:

$result = \Cvrapi\CVRClient::request('29910251', 'dk', 'vat', 'Unit Testing');

To this:

$result = CVRClient::request('29910251', 'dk', 'vat', 'Unit Testing');
Source Link
Jaypan
  • 18k
  • 3
  • 34
  • 65

The problem is that your use declaration is conflicting with your call to the client in the code. You probably need to change this:

use cvr\src\Cvrapi\CVRClient;

To this:

use Cvrapi\CVRClient;

And change this:

$result = \Cvrapi\CVRClient::request('29910251', 'dk', 'vat', 'Unit Testing');

To this:

$result = CVRClient::request('29910251', 'dk', 'vat', 'Unit Testing');