Skip to content

Commit

Permalink
Merge pull request #6 from lcobucci/update-standard
Browse files Browse the repository at this point in the history
Upgrade to Doctrine CS v7.0
  • Loading branch information
lcobucci authored Feb 25, 2020
2 parents 55aa7c5 + eeac789 commit f6cfe0d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ sudo: false
language: php

php:
- 7.3
- 7.4snapshot
- 7.4
- nightly

cache:
Expand All @@ -22,5 +21,4 @@ script:

jobs:
allow_failures:
- php: 7.4snapshot
- php: nightly
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
}
],
"require": {
"php": "^7.3 || ^8.0",
"doctrine/coding-standard": "^6.0"
"php": "^7.4 || ^8.0",
"doctrine/coding-standard": "^7.0"
},
"require-dev": {
"roave/security-advisories": "dev-master"
Expand Down
10 changes: 6 additions & 4 deletions tests/ExampleClassWithNoViolation.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

namespace Lcobucci;

use function sprintf;
use const PHP_EOL;

/**
* @runTestsInSeparateProcesses
*
Expand All @@ -12,10 +15,7 @@
*/
final class ExampleClassWithNoViolation
{
/**
* @var int
*/
private $test = 0;
private int $test = 0;

/**
* @internal
Expand Down Expand Up @@ -59,6 +59,7 @@ final class ExampleClassWithNoViolation
*/
public function aMethodWithAllUsefulAnnotations(): void
{
echo PHP_EOL;
echo $this->test;
}

Expand All @@ -83,6 +84,7 @@ public function aMethodWithAllUsefulAnnotations(): void
*/
public function sampleForPHPUnitTests(): void
{
echo sprintf('Testing %d', 1);
echo $this->test;
}
}

0 comments on commit f6cfe0d

Please sign in to comment.