1 | <?php |
||
2 | |||
3 | use Cairo\Context; |
||
0 ignored issues
–
show
|
|||
4 | 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 ![]() |
|||
5 | 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 ![]() |
|||
6 | |||
7 | $dashes = [ |
||
8 | 50.0, // ink |
||
9 | 10.0, // skip |
||
10 | 10.0, // ink |
||
11 | 10.0, // skip |
||
12 | ]; |
||
13 | |||
14 | $ndash = count($dashes); |
||
15 | $offset = -50.0; |
||
16 | |||
17 | $surface = new Image(0, 500, 500); |
||
18 | $context = new Context($surface); |
||
19 | $context->setDash($dashes, $offset); |
||
20 | $context->setLineWidth(10.0); |
||
21 | $context->moveTo(128.0, 25.6); |
||
22 | $context->lineTo(230.4, 230.4); |
||
23 | $context->relLineTo(-102.4, 0.0); |
||
24 | $context->curveTo(51.2, 230.4, 51.2, 128.0, 128.0, 128.0); |
||
25 | $context->stroke(); |
||
26 | |||
27 | $surface->writeToPng(dirname(__FILE__).'/dashes-php.png'); |
||
28 |
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