質問編集履歴
1
コード最適化
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,9 +8,13 @@
|
|
8
8
|
|
9
9
|
公式ドキュメントにあるように、Composerを用いてインストールし、試しにサンプルスクリプトを実行しましたが、下記エラーが発生します。
|
10
10
|
|
11
|
+
```ここに言語を入力
|
12
|
+
|
13
|
+
PHP Fatal error: Can't inherit abstract function JonnyW\PhantomJs\Procedure\OutputInterface::import() (previously declared abstract in JonnyW\PhantomJs\Http\ResponseInterface) in /home/scraper/public_html/php_phantomjs/vendor/jonnyw/php-phantomjs/src/JonnyW/PhantomJs/Http/Response.php on line 20
|
14
|
+
|
15
|
+
```
|
11
16
|
|
12
17
|
|
13
|
-
PHP Fatal error: Can't inherit abstract function JonnyW\PhantomJs\Procedure\OutputInterface::import() (previously declared abstract in JonnyW\PhantomJs\Http\ResponseInterface) in /home/scraper/public_html/php_phantomjs/vendor/jonnyw/php-phantomjs/src/JonnyW/PhantomJs/Http/Response.php on line 20
|
14
18
|
|
15
19
|
|
16
20
|
|
@@ -19,6 +23,8 @@
|
|
19
23
|
###ソースコード
|
20
24
|
|
21
25
|
/home/test/public_html/test/composer.json
|
26
|
+
|
27
|
+
```ここに言語を入力
|
22
28
|
|
23
29
|
{
|
24
30
|
|
@@ -40,9 +46,13 @@
|
|
40
46
|
|
41
47
|
}
|
42
48
|
|
49
|
+
```
|
50
|
+
|
43
51
|
|
44
52
|
|
45
53
|
/home/test/public_html/test/test.php(テストコード)
|
54
|
+
|
55
|
+
```ここに言語を入力
|
46
56
|
|
47
57
|
<?php
|
48
58
|
|
@@ -70,7 +80,7 @@
|
|
70
80
|
|
71
81
|
?>
|
72
82
|
|
73
|
-
|
83
|
+
```
|
74
84
|
|
75
85
|
|
76
86
|
|