Fixed typos

This commit is contained in:
Pascal Borreli 2013-01-08 18:19:54 +00:00
parent 8c320b0dfd
commit 36197dcb83
4 changed files with 6 additions and 6 deletions

View File

@ -198,7 +198,7 @@ class Command
public function end() public function end()
{ {
if (null === $this->parent) { if (null === $this->parent) {
throw new \RuntimeException('Calling end on root command dont makes sense.'); throw new \RuntimeException('Calling end on root command doesn\'t make sense.');
} }
return $this->parent; return $this->parent;

View File

@ -542,7 +542,7 @@ class Form implements \IteratorAggregate, FormInterface
} }
// Check whether the form is compound. // Check whether the form is compound.
// This check is preferrable over checking the number of children, // This check is preferable over checking the number of children,
// since forms without children may also be compound. // since forms without children may also be compound.
// (think of empty collection forms) // (think of empty collection forms)
if ($this->config->getCompound()) { if ($this->config->getCompound()) {
@ -837,7 +837,7 @@ class Form implements \IteratorAggregate, FormInterface
*/ */
public function getChildren() public function getChildren()
{ {
trigger_error('getChilren() is deprecated since version 2.1 and will be removed in 2.3. Use all() instead.', E_USER_DEPRECATED); trigger_error('getChildren() is deprecated since version 2.1 and will be removed in 2.3. Use all() instead.', E_USER_DEPRECATED);
return $this->all(); return $this->all();
} }

View File

@ -572,7 +572,7 @@ class Request
* Be warned that enabling this feature might lead to CSRF issues in your code. * Be warned that enabling this feature might lead to CSRF issues in your code.
* Check that you are using CSRF tokens when required. * Check that you are using CSRF tokens when required.
* *
* The HTTP method can only be overriden when the real HTTP method is POST. * The HTTP method can only be overridden when the real HTTP method is POST.
*/ */
public static function enableHttpMethodParameterOverride() public static function enableHttpMethodParameterOverride()
{ {
@ -722,7 +722,7 @@ class Request
* *
* * http://localhost/mysite returns an empty string * * http://localhost/mysite returns an empty string
* * http://localhost/mysite/about returns '/about' * * http://localhost/mysite/about returns '/about'
* * htpp://localhost/mysite/enco%20ded returns '/enco%20ded' * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
* * http://localhost/mysite/about?var=1 returns '/about' * * http://localhost/mysite/about?var=1 returns '/about'
* *
* @return string The raw path (i.e. not urldecoded) * @return string The raw path (i.e. not urldecoded)

View File

@ -13,7 +13,7 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler;
use Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcachedSessionHandler; use Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcachedSessionHandler;
class MemcacheddSessionHandlerTest extends \PHPUnit_Framework_TestCase class MemcachedSessionHandlerTest extends \PHPUnit_Framework_TestCase
{ {
const PREFIX = 'prefix_'; const PREFIX = 'prefix_';
const TTL = 1000; const TTL = 1000;