Skip to content

Commit

Permalink
Update APITestCaseWriter.php
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Sep 2, 2024
1 parent 067ae55 commit 8fc2179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webfiori/framework/writers/APITestCaseWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function __construct(WebServicesManager $manager = null, $service = null)
}
$this->setPhpUnitVersion(9);
if (!($service instanceof AbstractWebService)) {
if (class_exists($service)) {
if ($service !== null && class_exists($service)) {
$s = new $service();

if ($s instanceof AbstractWebService) {
Expand Down

0 comments on commit 8fc2179

Please sign in to comment.