Skip to content

Commit 3959112

Browse files
committed
clean ups
1 parent 66ef031 commit 3959112

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.php_cs.dist

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,18 @@ return Symfony\CS\Config\Config::create()
1616
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
1717
// and extra fixers:
1818
->fixers(array(
19+
'ereg_to_preg',
1920
'header_comment',
2021
'long_array_syntax',
2122
'newline_after_open_tag',
23+
'no_useless_return',
2224
'ordered_use',
2325
'php_unit_construct',
2426
'php_unit_strict',
2527
'strict',
2628
'strict_param',
27-
'-psr0',
2829
'-empty_return',
30+
'-psr0',
2931
))
3032
->finder(
3133
Symfony\CS\Finder\DefaultFinder::create()

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "MIT",
77
"keywords" : ["Silex", "Memcache", "Memcached"],
88
"require": {
9-
"php": ">=5.4.0",
9+
"php": "^5.4 || ^7.0",
1010
"silex/silex": "~1.1"
1111
},
1212
"require-dev": {
@@ -17,4 +17,4 @@
1717
"GeckoPackages\\Silex\\Services\\Caching\\": "src\\Caching"
1818
}
1919
}
20-
}
20+
}

tests/Caching/Tests/MemcachedServiceProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function testMockWithLoggerClient()
155155

156156
/**
157157
* @expectedException \UnexpectedValueException
158-
* @expectedExceptionMessage Cannot find class "\Foo\Bar" to use as cache client.
158+
* @expectedExceptionMessageRegExp #^Cannot find class "\\Foo\\Bar" to use as cache client.$#
159159
*/
160160
public function testExceptionMissingCustomClient()
161161
{

0 commit comments

Comments
 (0)