-
Notifications
You must be signed in to change notification settings - Fork 13
/
phpstan-bootstrap.php
51 lines (45 loc) · 1.29 KB
/
phpstan-bootstrap.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* Bootstrap file for PHPStan.
*
* @package Yoast\PHPUnitPolyfills
*
* @phpcs:disable Yoast.NamingConventions.NamespaceName -- This file emulates external classes.
* @phpcs:disable Yoast.Commenting.FileComment.Unnecessary -- This is deliberate.
* @phpcs:disable Generic.Files.OneObjectStructurePerFile
* @phpcs:disable Universal.Namespaces.OneDeclarationPerFile
* @phpcs:disable Universal.Namespaces.DisallowCurlyBraceSyntax
* @phpcs:disable Squiz.Commenting.FunctionComment.InvalidNoReturn -- These are only stubs, not real functions.
*/
namespace PHPUnit\SebastianBergmann\Exporter {
/**
* Emulate the PHPUnit-prefixed Exporter class.
*/
final class Exporter {
/**
* Exports a value as a string.
*
* @param mixed $value The value to export.
* @param int $indentation The indentation to use.
*
* @return string
*/
public function export( $value, $indentation = 0 ) {}
}
}
namespace PHPUnitPHAR\SebastianBergmann\Exporter {
/**
* Emulate the PHPUnitPHAR-prefixed Exporter class.
*/
final class Exporter {
/**
* Exports a value as a string.
*
* @param mixed $value The value to export.
* @param int $indentation The indentation to use.
*
* @return string
*/
public function export( $value, $indentation = 0 ) {}
}
}