We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bd4fa1 commit 706a433Copy full SHA for 706a433
.travis.yml
@@ -0,0 +1,13 @@
1
+language: php
2
+
3
+php:
4
+ - 7.1
5
+ - 7.2
6
7
+cache:
8
+ directories:
9
+ - $HOME/.composer/cache
10
11
+install: composer install
12
13
+script: vendor/bin/phpcs --standard=src/LEVIY/ruleset.xml tests/
tests/Foo.php
@@ -0,0 +1,16 @@
+<?php
+declare(strict_types=1);
+namespace Bar;
+use DateTime;
+final class Foo
+{
+ private const NOW = 'now';
+ public function getDate(): DateTime
+ {
14
+ return new DateTime(self::NOW);
15
+ }
16
+}
0 commit comments