Skip to content

Commit

Permalink
Silenced trigger_error
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh committed Jul 27, 2015
1 parent 2ab7d41 commit 4b3ca33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Block/BlockContextManager.php
Expand Up @@ -140,7 +140,7 @@ public function get($meta, array $settings = array())
protected function setDefaultSettings(OptionsResolverInterface $optionsResolver, BlockInterface $block)
{
if (get_called_class() !== __CLASS__) {
trigger_error('The '.__METHOD__.' is deprecated since version 2.3, to be renamed in 3.0. Use '.__CLASS__.'::configureSettings instead.', E_USER_DEPRECATED);
@trigger_error('The '.__METHOD__.' is deprecated since version 2.3, to be renamed in 3.0. Use '.__CLASS__.'::configureSettings instead.', E_USER_DEPRECATED);
}
$this->configureSettings($optionsResolver, $block);
}
Expand Down Expand Up @@ -253,7 +253,7 @@ private function resolve(BlockInterface $block, $settings)
}

if ($this->reflectionCache[$serviceClass]['isOldOverwritten'] && !$this->reflectionCache[$serviceClass]['isNewOverwritten']) {
trigger_error('The Sonata\BlockBundle\Block\BlockServiceInterface::setDefaultSettings() method is deprecated since version 2.3 and will be removed in 3.0. Use configureSettings() instead. This method will be added to the BlockServiceInterface with SonataBlockBundle 3.0.', E_USER_DEPRECATED);
@trigger_error('The Sonata\BlockBundle\Block\BlockServiceInterface::setDefaultSettings() method is deprecated since version 2.3 and will be removed in 3.0. Use configureSettings() instead. This method will be added to the BlockServiceInterface with SonataBlockBundle 3.0.', E_USER_DEPRECATED);
}

return $optionsResolver->resolve($settings);
Expand Down

0 comments on commit 4b3ca33

Please sign in to comment.