Test Failed
Pull Request — master (#364)
by Elvis Henrique
04:55
created

src/Entities/Example.php (2 issues)

1
<?php declare(strict_types = 1);
2
3
namespace App\Entities;
4
5
use WPSteak\Entities\AbstractPost;
0 ignored issues
show
The type WPSteak\Entities\AbstractPost 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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
/** @codeCoverageIgnore */
8
class Example extends AbstractPost {
9
10
	public const POST_TYPE = 'example';
11
12
	protected string $address;
13
14
	public function __construct( \WP_Post $post, string $address ) {
15
		$this->post = $post;
0 ignored issues
show
Bug Best Practice introduced by
The property post does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
16
		$this->address = $address;
17
	}
18
19
	public function get_address(): string {
20
		return $this->address;
21
	}
22
23
}
24