Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 5 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
37 | protected function setUp() |
||
38 | { |
||
39 | // Setup DOM |
||
40 | $this->domDocument = new \DOMDocument('1', 'UTF-8'); |
||
|
|||
41 | |||
42 | $html = $this->domDocument->createElement('html'); |
||
43 | $this->domAnchor = $this->domDocument->createElement('a', 'fake'); |
||
44 | $this->domAnchor->setAttribute('href', 'http://php-spider.org/contact/'); |
||
45 | |||
46 | $this->domDocument->appendChild($html); |
||
47 | $html->appendChild($this->domAnchor); |
||
48 | |||
49 | $this->uri = new FilterableUri(new Uri($this->domAnchor->getAttribute('href'))); |
||
50 | |||
51 | // Setup Spider\Resource |
||
52 | $content = $this->domDocument->saveHTML(); |
||
53 | |||
54 | $this->spiderResource = new Resource( |
||
55 | $this->uri, |
||
56 | new Response(200, null, $content) |
||
57 | ); |
||
58 | } |
||
59 | } |
||
60 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..