The type Fisharebest\Webtrees\DB\Drivers\Table was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. excluded_paths:["lib/*"],
you can move it to the dependency path list as follows:
and let?s assume the following content of Bar.php:
// Bar.phpnamespaceOtherDir;useSomeDir\Foo;// This now conflicts the class OtherDir\Foo
If both files OtherDir/Foo.php and SomeDir/Foo.php are loaded in the
same runtime, you will see a PHP error such as the following:
PHP Fatal error: Cannot use SomeDir\Foo as Foo because the name is already in use in OtherDir/Foo.php
However, as OtherDir/Foo.php does not necessarily have to be loaded and the
error is only triggered if it is loaded before OtherDir/Bar.php, this problem
might go unnoticed for a while. In order to prevent this error from surfacing,
you must import the namespace with a different alias:
// Bar.phpnamespaceOtherDir;useSomeDir\FooasSomeDirFoo;// There is no conflict anymore.
Loading history...
24
use Fisharebest\Webtrees\DB\Drivers\MySQLDriver;
25
use Fisharebest\Webtrees\DB\Drivers\PostgreSQLDriver;
26
use Fisharebest\Webtrees\DB\Drivers\SQLiteDriver;
27
use Fisharebest\Webtrees\DB\Drivers\SQLServerDriver;
28
use PDO;
29
use Stringable;
30
use UnhandledMatchError;
31
32
/**
33
* Extend the PDO database connection to support prefixes and introspection.
34
*/
35
class Expression implements Stringable
36
{
37
public function __construct(private readonly string $sql)
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths