Skip to content

Commit eed7c96

Browse files
Merge branch '1.4' into 1.5
2 parents 8b6c4dc + 7d6f044 commit eed7c96

File tree

14 files changed

+34
-11
lines changed

14 files changed

+34
-11
lines changed

.github/workflows/static.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: '7.3'
19+
php-version: '7.4'
2020
tools: composer:v2
2121
coverage: none
2222

.styleci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
preset: symfony
22

3+
version: 7.4
4+
35
risky: true
46

57
enabled:

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# CHANGELOG
22

33

4+
## 1.4.1 (2022-03-25)
5+
6+
* Added fallback to css layout metrics
7+
* Added missing destroyed setting
8+
* Prevent `Node::querySelector` from returning nodeId `0`
9+
* Fixed "What's new" page opening on startup
10+
* More fixes to enable eventual PHP 8.1 support
11+
12+
413
## 1.4.0 (2022-01-23)
514

615
* Added support for `--no-proxy-server` and `--proxy-bypass-list`

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ header('Pragma: public');
473473
echo base64_decode($pdf->getBase64());
474474
```
475475

476-
Options `headerTempalte` and `footerTempalte`:
476+
Options `headerTemplate` and `footerTemplate`:
477477

478478
Should be valid HTML markup with the following classes used to inject printing values into them:
479479
- date: formatted print date
@@ -745,7 +745,7 @@ $elem->sendKeys('Sample text');
745745
You can upload file to file from the input:
746746

747747
```php
748-
$elem->uploadFile('/path/to/file');
748+
$elem->sendFile('/path/to/file');
749749
```
750750

751751
You can get element text or attribute:

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
}
4242
},
4343
"config": {
44+
"allow-plugins": {
45+
"bamarni/composer-bin-plugin": true
46+
},
4447
"preferred-install": "dist"
4548
}
4649
}

src/Browser/BrowserProcess.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ private function getArgsFromOptions($binary, array $options)
303303
'--disable-prompt-on-repost',
304304
'--disable-sync',
305305
'--disable-translate',
306+
'--disable-features=ChromeWhatsNewUI',
306307
'--metrics-recording-only',
307308
'--no-first-run',
308309
'--safebrowsing-disable-auto-update',

src/Communication/Response.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ public function offsetGet($offset)
119119
/**
120120
* {@inheritdoc}
121121
*/
122-
#[\ReturnTypeWillChange]
123122
public function offsetSet($offset, $value): void
124123
{
125124
throw new \Exception('Responses are immutable');
@@ -128,7 +127,6 @@ public function offsetSet($offset, $value): void
128127
/**
129128
* {@inheritdoc}
130129
*/
131-
#[\ReturnTypeWillChange]
132130
public function offsetUnset($offset): void
133131
{
134132
throw new \Exception('Responses are immutable');

src/Communication/Session.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ public function destroy(): void
135135
}
136136
$this->emit('destroyed');
137137
$this->connection = null;
138+
$this->destroyed = true;
138139
$this->removeAllListeners();
139140
}
140141
}

src/Cookies/Cookie.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public function getDomain()
5757
/**
5858
* {@inheritdoc}
5959
*/
60+
#[\ReturnTypeWillChange]
6061
public function offsetExists($offset)
6162
{
6263
return \array_key_exists($offset, $this->data);
@@ -65,6 +66,7 @@ public function offsetExists($offset)
6566
/**
6667
* {@inheritdoc}
6768
*/
69+
#[\ReturnTypeWillChange]
6870
public function offsetGet($offset)
6971
{
7072
return $this->data[$offset] ?? null;

src/Cookies/CookiesCollection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public function addCookie(Cookie $cookie): void
4444
/**
4545
* {@inheritdoc}
4646
*/
47+
#[\ReturnTypeWillChange]
4748
public function getIterator()
4849
{
4950
return new \ArrayIterator($this->cookies);
@@ -52,6 +53,7 @@ public function getIterator()
5253
/**
5354
* {@inheritdoc}
5455
*/
56+
#[\ReturnTypeWillChange]
5557
public function count()
5658
{
5759
return \count($this->cookies);

0 commit comments

Comments
 (0)