IntegerType does not properly validate in GET.
When creating a request like this: /page?page=1
And considering I have this in my FormType:
$builder->add('page', 'integer', array(
'empty_data' => 1,
));
--- | |
:backends: | |
- 'yaml' | |
:hierarchy: | |
- "%{::hostname}" | |
- "%{::hiera}" | |
- 'xhprof' | |
- 'php' | |
- 'apache' |
define( | |
[], | |
function () { | |
"use strict"; | |
var Whatever = function () { | |
var that = (this === window) ? {} : this; | |
this.privateProp = []; | |
diff --git a/composer.json b/composer.json | |
index 80dc114..3b90dff 100644 | |
--- a/composer.json | |
+++ b/composer.json | |
@@ -31,6 +31,9 @@ | |
"autoload": { | |
"psr-0": { "Doctrine\\ORM\\": "lib/" } | |
}, | |
+ "autoload-dev": { | |
+ "psr-0": { "Doctrine\\Tests\\": "tests/" } |
<?php | |
namespace Base\ComponentBundle\Form\Handler; | |
use Symfony\Component\Form\FormFactoryInterface; | |
use Symfony\Component\Form\FormInterface; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException; | |
/** |
IntegerType does not properly validate in GET.
When creating a request like this: /page?page=1
And considering I have this in my FormType:
$builder->add('page', 'integer', array(
'empty_data' => 1,
));
diff --git a/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php b/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php | |
index 51791af..ad41841 100644 | |
--- a/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php | |
+++ b/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php | |
@@ -941,6 +941,7 @@ class ClassMetadataInfo implements ClassMetadata | |
} | |
$parentReflFields[$property] = $reflService->getAccessibleProperty($this->name, $property); | |
+ $this->reflFields[$property] = $reflService->getAccessibleProperty($this->name, $property); | |
} |
<?php | |
namespace Foo; | |
private class Speaker { | |
public function saySomething() { echo 'Hello world'; } | |
} | |
function sayHello() { | |
$b = new Bar(); |
[ | |
"pn_apns" => [ | |
"aps" => [ | |
"alert" => "Joe: Hi", | |
"badge" => 3, | |
"sound" => "bingbong.aiff", | |
], | |
"conversation" => 12, | |
"message" => 12345, | |
], |
var path = require('path'); | |
var webpack = require('webpack'); | |
var ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
var ComponentPlugin = require('component-webpack-plugin'); | |
module.exports = (function (options) { | |
var root = path.join(__dirname, 'app', 'Resources', 'public'); | |
var stylesheetLoaders = ['css-loader']; | |
var plugins = [ | |
new webpack.PrefetchPlugin("react"), |
import React from 'react'; | |
class App extends React.Component { | |
render(): any { | |
return <div>Hello world!</div>; | |
} | |
} |