bug #11905 [Intl] Removed non-working $fallback argument from ArrayAccessibleResourceBundle (webmozart)

This PR was merged into the 2.3 branch.

Discussion
----------

[Intl] Removed non-working $fallback argument from ArrayAccessibleResourceBundle

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

The code in question didn't actually work. This was extracted from #9206.

Commits
-------

5feda5e [Intl] Removed non-working $fallback argument from ArrayAccessibleResourceBundle
This commit is contained in:
Bernhard Schussek 2014-09-12 12:39:43 +02:00
commit 2349839738
1 changed files with 3 additions and 3 deletions

View File

@ -32,16 +32,16 @@ class ArrayAccessibleResourceBundle implements \ArrayAccess, \IteratorAggregate,
$this->bundleImpl = $bundleImpl;
}
public function get($offset, $fallback = null)
public function get($offset)
{
$value = $this->bundleImpl->get($offset, $fallback);
$value = $this->bundleImpl->get($offset);
return $value instanceof \ResourceBundle ? new static($value) : $value;
}
public function offsetExists($offset)
{
return null !== $this->bundleImpl[$offset];
return null !== $this->bundleImpl->get($offset);
}
public function offsetGet($offset)