| 1 |
<?php |
| 2 |
/** |
| 3 |
* PHPStan stubs for optional AMP-plugin functions. |
| 4 |
* |
| 5 |
* These functions ship with the AMP plugin and are guarded at runtime via |
| 6 |
* func_is_available(); PHPStan has no symbol source for them in this repo, |
| 7 |
* so their declarations are provided here for static analysis only. This |
| 8 |
* file is never loaded at runtime — phpstan.neon references it via scanFiles. |
| 9 |
*/ |
| 10 |
|
| 11 |
namespace { |
| 12 |
function amp_is_request(): bool |
| 13 |
{ |
| 14 |
return false; |
| 15 |
} |
| 16 |
|
| 17 |
function is_amp_endpoint(): bool |
| 18 |
{ |
| 19 |
return false; |
| 20 |
} |
| 21 |
} |
| 22 |
|