1 | <?php |
||
2 | |||
3 | use Cairo\Context; |
||
0 ignored issues
–
show
|
|||
4 | use Cairo\Operator; |
||
0 ignored issues
–
show
The type
Cairo\Operator 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
5 | use Cairo\Surface\Image; |
||
0 ignored issues
–
show
The type
Cairo\Surface\Image 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
6 | use Cairo\Surface\ImageFormat; |
||
0 ignored issues
–
show
The type
Cairo\Surface\ImageFormat 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
7 | |||
8 | $surface = new Image(ImageFormat::ARGB32, 100, 100); |
||
9 | $context = new Context($surface); |
||
10 | |||
11 | $s = new Image(ImageFormat::ARGB32, 1, 1); |
||
12 | $s->createFromPng(dirname(__FILE__).'/romedalen.png'); |
||
13 | |||
14 | $context->setSourceRgb(0, 0, 0); |
||
15 | $context->rectangle(0, 0, 100, 100); |
||
16 | $context->fill(); |
||
17 | |||
18 | $context->translate(10, 10); |
||
19 | $context->setOperator(Operator::SOURCE); |
||
20 | $context->setSurface($s, 0, 0); |
||
21 | $context->rectangle(0, 0, 90, 90); |
||
22 | $context->fill(); |
||
23 | $surface->writeToPng(dirname(__FILE__).'/composite-integer-translate-source-php.png'); |
||
24 |
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