Skip to content

Commit 8b191d6

Browse files
committed
Implement type hints for phan
1 parent d11dffc commit 8b191d6

8 files changed

Lines changed: 524 additions & 169 deletions

File tree

.phan/config.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
return array(
3+
"directory_list" => array(
4+
".",
5+
),
6+
"exclude_analysis_directory_list" => array(
7+
'vendor/',
8+
),
9+
);

README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ API
127127
128128
// short form, simple API
129129
$args = Docopt::handle($doc);
130-
130+
131131
// short form (5.4 or better)
132132
$args = (new \Docopt\Handler)->handle($sdoc);
133-
133+
134134
// long form, simple API (equivalent to short)
135135
$params = array(
136136
'argv'=>array_slice($_SERVER['argv'], 1),
@@ -167,7 +167,7 @@ API
167167
-o FILE specify output file [default: ./test.txt]
168168
--quiet print less text
169169
--verbose print more text
170-
170+
171171
DOC;
172172
173173
@@ -217,13 +217,13 @@ API
217217
<?php
218218
$doc = <<<DOC
219219
Usage: my_program.php [-hso FILE] [--quiet | --verbose] [INPUT ...]
220-
220+
221221
-h --help show this
222222
-s --sorted sorted output
223223
-o FILE specify output file [default: ./test.txt]
224224
--quiet print less text
225225
--verbose print more text
226-
226+
227227
DOC;
228228
229229

0 commit comments

Comments
 (0)