Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit dcd9ea7

Browse files
committed
Add strict types to utilities [skip ci]
1 parent 6c370a7 commit dcd9ea7

File tree

6 files changed

+7
-8
lines changed

6 files changed

+7
-8
lines changed

scripts/refresh-package-xml.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env php
2-
<?php
2+
<?php declare(strict_types=1);
3+
34
/**
45
* This file is part of the pinepain/php-v8 PHP extension.
56
*

scripts/replace_expect.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env php
2-
<?php
2+
<?php declare(strict_types=1);
33
/**
44
* This file is part of the pinepain/php-v8 PHP extension.
55
*

tests/.testsuite.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
/**
44
* This file is part of the pinepain/php-v8 PHP extension.
@@ -23,8 +23,6 @@ function exception_error_handler($errno, $errstr, $errfile, $errline)
2323

2424
class PhpV8Testsuite
2525
{
26-
private $dumper = 'var_dump';
27-
2826
public function header($title)
2927
{
3028
echo $title, ':', PHP_EOL;

tests/.tracking_dtors.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
/**
44
* This file is part of the pinepain/php-v8 PHP extension.

tests/.v8-helpers.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
/**
44
* This file is part of the pinepain/php-v8 PHP extension.

tests/001.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Check for v8 presence
33
--SKIPIF--
44
<?php if (!extension_loaded("v8")) print "skip"; ?>
55
--FILE--
6-
<?php
6+
<?php
77
echo "v8 extension is available";
88
?>
99
--EXPECT--

0 commit comments

Comments
 (0)