Skip to content

Commit a195e4c

Browse files
committed
Fixed examples execution script
1 parent ec98950 commit a195e4c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/run.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
print "\nExample: {$file->getRelativePathname()}\n";
3333

3434
try {
35-
include $file->getRealPath();
35+
if ($file->getBasename() === 'code.php') {
36+
include $file->getRealPath();
37+
}
3638
} catch (Exception $e) {
3739
print "Example failed: {$e->getMessage()}\n";
3840

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
+----------+-----------------------------+---------------------+----------+--------------+-----------+----------------------+
22
| name | html_url | blog | login | public_repos | followers | created_at |
33
+----------+-----------------------------+---------------------+----------+--------------+-----------+----------------------+
4-
| Flow PHP | https://github.com/flow-php | http://flow-php.com | flow-php | 36 | 101 | 2020-10-26T18:40:27Z |
4+
| Flow PHP | https://github.com/flow-php | http://flow-php.com | flow-php | 36 | 102 | 2020-10-26T18:40:27Z |
55
+----------+-----------------------------+---------------------+----------+--------------+-----------+----------------------+
66
1 rows

0 commit comments

Comments
 (0)