Skip to content

Commit e99148b

Browse files
Merge pull request #129 from darkwebdesign/ISSUE-104
ISSUE-104: Update Add-on Pack for Symfony 3.0
2 parents cbaf5ed + 9197ff0 commit e99148b

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

src/BooleanType.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,12 @@ public function buildForm(FormBuilderInterface $builder, array $options)
5454
*/
5555
public function configureOptions(OptionsResolver $resolver)
5656
{
57-
$self = $this;
58-
59-
$labelTrueNormalizer = function (Options $options, $value) use ($self) {
60-
return !is_null($value) ? (string) $value : $self->humanize($options['value_true']);
57+
$labelTrueNormalizer = function (Options $options, $value) {
58+
return !is_null($value) ? (string) $value : $this->humanize($options['value_true']);
6159
};
6260

63-
$labelFalseNormalizer = function (Options $options, $value) use ($self) {
64-
return !is_null($value) ? (string) $value : $self->humanize($options['value_false']);
61+
$labelFalseNormalizer = function (Options $options, $value) {
62+
return !is_null($value) ? (string) $value : $this->humanize($options['value_false']);
6563
};
6664

6765
$choicesNormalizer = function (Options $options) {
@@ -117,8 +115,6 @@ public function getParent()
117115
* @param string $text
118116
*
119117
* @return string
120-
*
121-
* @deprecated since 2.8, will be removed in 3.0
122118
*/
123119
public function humanize($text)
124120
{

tests/EntityTypeTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ class EntityTypeTest extends TypeTestCase
3636
/** @var int */
3737
private $identifier;
3838

39-
/** @var \Doctrine\Common\Persistence\ManagerRegistry */
39+
/** @var \Doctrine\Common\Persistence\ManagerRegistry|\PHPUnit_Framework_MockObject_MockObject */
4040
private $registry;
4141

42-
/** @var \Doctrine\Common\Persistence\ObjectManager */
42+
/** @var \Doctrine\Common\Persistence\ObjectManager|\PHPUnit_Framework_MockObject_MockObject */
4343
private $entityManager;
4444

45-
/** @var \Doctrine\Common\Persistence\ObjectRepository */
45+
/** @var \Doctrine\Common\Persistence\ObjectRepository|\PHPUnit_Framework_MockObject_MockObject */
4646
private $repository;
4747

48-
/** @var \Doctrine\Common\Persistence\Mapping\ClassMetadata */
48+
/** @var \Doctrine\Common\Persistence\Mapping\ClassMetadata|\PHPUnit_Framework_MockObject_MockObject */
4949
private $metadata;
5050

5151
protected function setUp()

0 commit comments

Comments
 (0)