Skip to content

Commit

Permalink
Update minimum Symfony version to 2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Bukashk0zzz committed Apr 28, 2016
1 parent 416ae89 commit f8191ce
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -7,7 +7,7 @@ php:
- hhvm

env:
- SYMFONY_VERSION=2.7.*
- SYMFONY_VERSION=2.8.*
- SYMFONY_VERSION=3.0.*

allow_failures:
Expand Down
1 change: 1 addition & 0 deletions Annotation/FilterAnnotation.php
Expand Up @@ -40,6 +40,7 @@ final class FilterAnnotation implements Annotation
* @param array $parameters Filter parameters
*
* @throws \LogicException
* @throws \InvalidArgumentException
*/
public function __construct(array $parameters)
{
Expand Down
1 change: 1 addition & 0 deletions DependencyInjection/Bukashk0zzzFilterExtension.php
Expand Up @@ -25,6 +25,7 @@ class Bukashk0zzzFilterExtension extends Extension
{
/**
* {@inheritdoc}
* @throws \Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException
* @throws \Exception
*/
public function load(array $configs, ContainerBuilder $container)
Expand Down
7 changes: 7 additions & 0 deletions Tests/Annotation/FilterTest.php
Expand Up @@ -23,6 +23,7 @@ class FilterAnnotationTest extends \PHPUnit_Framework_TestCase
/**
* Test annotation with `value` option
* @throws \LogicException
* @throws \InvalidArgumentException
* @throws \PHPUnit_Framework_AssertionFailedError
*/
public function testValueOption()
Expand All @@ -36,6 +37,7 @@ public function testValueOption()
/**
* Test annotation with all options
* @throws \LogicException
* @throws \InvalidArgumentException
*/
public function testAllOptions()
{
Expand All @@ -53,6 +55,7 @@ public function testAllOptions()
*
* @expectedException \LogicException
* @throws \LogicException
* @throws \InvalidArgumentException
*/
public function testAnnotationWithoutOptions()
{
Expand All @@ -64,6 +67,7 @@ public function testAnnotationWithoutOptions()
*
* @expectedException \InvalidArgumentException
* @throws \LogicException
* @throws \InvalidArgumentException
*/
public function testWrongTypeForFilterOption()
{
Expand All @@ -75,6 +79,7 @@ public function testWrongTypeForFilterOption()
*
* @expectedException \InvalidArgumentException
* @throws \LogicException
* @throws \InvalidArgumentException
*/
public function testWrongFilterClassForFilterOption()
{
Expand All @@ -86,6 +91,7 @@ public function testWrongFilterClassForFilterOption()
*
* @expectedException \InvalidArgumentException
* @throws \LogicException
* @throws \InvalidArgumentException
*/
public function testWrongTypeForValueOption()
{
Expand All @@ -97,6 +103,7 @@ public function testWrongTypeForValueOption()
*
* @expectedException \InvalidArgumentException
* @throws \LogicException
* @throws \InvalidArgumentException
*/
public function testWrongTypeForOptionsOption()
{
Expand Down
Expand Up @@ -34,6 +34,7 @@ class Bukashk0zzzFilterExtensionTest extends \PHPUnit_Framework_TestCase
/**
* {@inheritdoc}
* @throws \BadMethodCallException When this ContainerBuilder is frozen
* @throws \Symfony\Component\DependencyInjection\Exception\BadMethodCallException
*/
protected function setUp()
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/UserType.php
Expand Up @@ -35,7 +35,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)

/**
* {@inheritdoc}
* @throws \Exception
* @throws \Symfony\Component\OptionsResolver\Exception\AccessException
*/
public function configureOptions(OptionsResolver $resolver)
{
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -18,7 +18,7 @@
},
"require": {
"php": ">=5.6.0",
"symfony/symfony": "~2.7|~3.0",
"symfony/symfony": "~2.8|~3.0",
"doctrine/orm": "~2.5",
"zendframework/zend-filter": "~2.6"
},
Expand Down

0 comments on commit f8191ce

Please sign in to comment.