Skip to content

Commit b8e6902

Browse files
authored
Merge pull request #992 from teklakct/master
Typo fix in prepareColumnValues typings
2 parents 62c78d9 + 155f696 commit b8e6902

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
namespace APY\DataGridBundle\Grid\Exception;
4+
5+
class PropertyAccessDeniedException extends \RuntimeException
6+
{
7+
}

Grid/Source/Source.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
namespace APY\DataGridBundle\Grid\Source;
1414

1515
use APY\DataGridBundle\Grid\Column\Column;
16+
use APY\DataGridBundle\Grid\Exception\PropertyAccessDeniedException;
1617
use APY\DataGridBundle\Grid\Helper\ColumnsIterator;
1718
use APY\DataGridBundle\Grid\Mapping\Driver\DriverInterface;
1819
use APY\DataGridBundle\Grid\Row;
1920
use APY\DataGridBundle\Grid\Rows;
20-
use Symfony\Component\Form\Exception\PropertyAccessDeniedException;
2121

2222
abstract class Source implements DriverInterface
2323
{
@@ -217,7 +217,7 @@ protected function getItemsFromData($columns)
217217
|| is_callable([$itemEntity, $fullFunctionName = 'is' . $functionName])) {
218218
$fieldValue = call_user_func([$itemEntity, $fullFunctionName]);
219219
} else {
220-
throw new PropertyAccessDeniedExceptio(sprintf('Property "%s" is not public or has no accessor.', $fieldName));
220+
throw new PropertyAccessDeniedException(sprintf('Property "%s" is not public or has no accessor.', $fieldName));
221221
}
222222
} elseif (isset($item[$fieldName])) {
223223
$fieldValue = $item[$fieldName];
@@ -233,10 +233,10 @@ protected function getItemsFromData($columns)
233233
/**
234234
* Find data from array|object.
235235
*
236-
* @param \APY\DataGridBundle\Grid\Column\Column[] $columns
237-
* @param int $page
238-
* @param int $limit
239-
* @param int $maxResults
236+
* @param Column[] $columns
237+
* @param int $page
238+
* @param int $limit
239+
* @param int $maxResults
240240
*
241241
* @return Rows
242242
*/
@@ -471,7 +471,7 @@ public function executeFromData($columns, $page = 0, $limit = 0, $maxResults = n
471471

472472
public function populateSelectFiltersFromData($columns, $loop = false)
473473
{
474-
/* @var $column Column\Column */
474+
/* @var $column Column */
475475
foreach ($columns as $column) {
476476
$selectFrom = $column->getSelectFrom();
477477

@@ -582,7 +582,7 @@ private function removeAccents($str)
582582
return preg_replace('#&([A-za-z]{2})(?:lig);#', '\1', $noaccentStr);
583583
}
584584

585-
protected function prepareColumnValues(Column\Column $column, $values)
585+
protected function prepareColumnValues(Column $column, $values)
586586
{
587587
$existingValues = $column->getValues();
588588
if (!empty($existingValues)) {

0 commit comments

Comments
 (0)