swen100 /
cairo
| 1 | <?php |
||
| 2 | |||
| 3 | use Cairo\Context; |
||
|
0 ignored issues
–
show
|
|||
| 4 | use Cairo\Surface\Ps; |
||
|
0 ignored issues
–
show
The type
Cairo\Surface\Ps 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 Loading history...
|
|||
| 5 | |||
| 6 | $width = 100; |
||
| 7 | $height = 100; |
||
| 8 | |||
| 9 | $surface = new Ps('temp.ps', $width, $height); |
||
| 10 | $context = new Context($surface); |
||
| 11 | |||
| 12 | $context->setSourceRgb(1, 1, 0); |
||
| 13 | $context->moveTo(50, 50); |
||
| 14 | $context->lineTo(50000, 50000); |
||
| 15 | $context->stroke(); |
||
| 16 | |||
| 17 | $context->setSourceRgb(1, 0, 0); |
||
| 18 | $context->moveTo(50, 50); |
||
| 19 | $context->lineTo(-50000, 50000); |
||
| 20 | $context->stroke(); |
||
| 21 | |||
| 22 | $context->setSourceRgb(0, 1, 0); |
||
| 23 | $context->moveTo(50, 50); |
||
| 24 | $context->lineTo(50000, -50000); |
||
| 25 | $context->stroke(); |
||
| 26 | |||
| 27 | $context->setSourceRgb(0, 0, 1); |
||
| 28 | $context->moveTo(50, 50); |
||
| 29 | $context->lineTo(-50000, -50000); |
||
| 30 | $context->stroke(); |
||
| 31 | |||
| 32 | $surface->writeToPng(dirname(__FILE__).'/big-line-php.png'); |
||
| 33 | |||
| 34 |
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