| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 5 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 36 | protected function setUp() |
||
| 37 | { |
||
| 38 | // Setup DOM |
||
| 39 | $this->domDocument = new \DOMDocument('1', 'UTF-8'); |
||
|
|
|||
| 40 | |||
| 41 | $html = $this->domDocument->createElement('html'); |
||
| 42 | $this->domAnchor = $this->domDocument->createElement('a', 'fake'); |
||
| 43 | $this->domAnchor->setAttribute('href', 'http://php-spider.org/contact/'); |
||
| 44 | |||
| 45 | $this->domDocument->appendChild($html); |
||
| 46 | $html->appendChild($this->domAnchor); |
||
| 47 | |||
| 48 | $this->uri = new Uri($this->domAnchor->getAttribute('href')); |
||
| 49 | |||
| 50 | // Setup Spider\Resource |
||
| 51 | $content = $this->domDocument->saveHTML(); |
||
| 52 | |||
| 53 | $this->spiderResource = new Resource( |
||
| 54 | $this->uri, |
||
| 55 | new Response(200, null, $content) |
||
| 56 | ); |
||
| 57 | } |
||
| 58 | } |
||
| 59 |
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..