summaryrefslogtreecommitdiff
path: root/Zend/tests/type_declarations/typed_properties_070.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-02-03 22:52:20 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-02-03 22:52:20 +0100
commitf8d795820e780a6322e054c26c581570613c14f0 (patch)
tree99d3ae01ce564752807341c5743863b4c92513f8 /Zend/tests/type_declarations/typed_properties_070.phpt
parentd2cb200e10ada6fa44c54a29292bb4665728fff0 (diff)
downloadphp-git-f8d795820e780a6322e054c26c581570613c14f0.tar.gz
Reindent phpt files
Diffstat (limited to 'Zend/tests/type_declarations/typed_properties_070.phpt')
-rw-r--r--Zend/tests/type_declarations/typed_properties_070.phpt16
1 files changed, 8 insertions, 8 deletions
diff --git a/Zend/tests/type_declarations/typed_properties_070.phpt b/Zend/tests/type_declarations/typed_properties_070.phpt
index ec2d6bf8c6..d039fca3b1 100644
--- a/Zend/tests/type_declarations/typed_properties_070.phpt
+++ b/Zend/tests/type_declarations/typed_properties_070.phpt
@@ -3,15 +3,15 @@ Test typed static property with assign op operators
--FILE--
<?php
function &stringRef() {
- static $a = "1";
- $b = $a;
- $a = &$b;
- return $a;
+ static $a = "1";
+ $b = $a;
+ $a = &$b;
+ return $a;
}
class Foo {
- public static int $i = 0;
- public static string $s = "1";
+ public static int $i = 0;
+ public static string $s = "1";
}
Foo::$s .= "1";
@@ -28,12 +28,12 @@ Foo::$i += stringRef();
var_dump(Foo::$i);
try {
- Foo::$i += PHP_INT_MAX;
+ Foo::$i += PHP_INT_MAX;
} catch (TypeError $e) { print $e->getMessage()."\n"; }
var_dump(Foo::$i);
try {
- Foo::$i .= PHP_INT_MAX;
+ Foo::$i .= PHP_INT_MAX;
} catch (TypeError $e) { print $e->getMessage()."\n"; }
var_dump(Foo::$i);