[FrameworkBundle][WebProfilerBundle] Don't pass null to string parameters
Signed-off-by: Alexander M. Turek <me@derrabus.de>
This commit is contained in:
parent
b87de425c0
commit
5af6edae62
@ -285,7 +285,7 @@ class XmlDescriptor extends Descriptor
|
|||||||
$descriptionXML->appendChild($dom->createCDATASection($classDescription));
|
$descriptionXML->appendChild($dom->createCDATASection($classDescription));
|
||||||
}
|
}
|
||||||
|
|
||||||
$serviceXML->setAttribute('class', $definition->getClass());
|
$serviceXML->setAttribute('class', $definition->getClass() ?? '');
|
||||||
|
|
||||||
if ($factory = $definition->getFactory()) {
|
if ($factory = $definition->getFactory()) {
|
||||||
$serviceXML->appendChild($factoryXML = $dom->createElement('factory'));
|
$serviceXML->appendChild($factoryXML = $dom->createElement('factory'));
|
||||||
@ -311,7 +311,7 @@ class XmlDescriptor extends Descriptor
|
|||||||
$serviceXML->setAttribute('abstract', $definition->isAbstract() ? 'true' : 'false');
|
$serviceXML->setAttribute('abstract', $definition->isAbstract() ? 'true' : 'false');
|
||||||
$serviceXML->setAttribute('autowired', $definition->isAutowired() ? 'true' : 'false');
|
$serviceXML->setAttribute('autowired', $definition->isAutowired() ? 'true' : 'false');
|
||||||
$serviceXML->setAttribute('autoconfigured', $definition->isAutoconfigured() ? 'true' : 'false');
|
$serviceXML->setAttribute('autoconfigured', $definition->isAutoconfigured() ? 'true' : 'false');
|
||||||
$serviceXML->setAttribute('file', $definition->getFile());
|
$serviceXML->setAttribute('file', $definition->getFile() ?? '');
|
||||||
|
|
||||||
$calls = $definition->getMethodCalls();
|
$calls = $definition->getMethodCalls();
|
||||||
if (\count($calls) > 0) {
|
if (\count($calls) > 0) {
|
||||||
|
@ -76,8 +76,10 @@ class ConcreteMicroKernel extends Kernel implements EventSubscriberInterface
|
|||||||
|
|
||||||
public function __destruct()
|
public function __destruct()
|
||||||
{
|
{
|
||||||
$fs = new Filesystem();
|
if ($this->cacheDir) {
|
||||||
$fs->remove($this->cacheDir);
|
$fs = new Filesystem();
|
||||||
|
$fs->remove($this->cacheDir);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function configureRoutes(RouteCollectionBuilder $routes)
|
protected function configureRoutes(RouteCollectionBuilder $routes)
|
||||||
|
@ -103,7 +103,7 @@ class WebDebugToolbarListener implements EventSubscriberInterface
|
|||||||
|| $response->isRedirection()
|
|| $response->isRedirection()
|
||||||
|| ($response->headers->has('Content-Type') && false === strpos($response->headers->get('Content-Type'), 'html'))
|
|| ($response->headers->has('Content-Type') && false === strpos($response->headers->get('Content-Type'), 'html'))
|
||||||
|| 'html' !== $request->getRequestFormat()
|
|| 'html' !== $request->getRequestFormat()
|
||||||
|| false !== stripos($response->headers->get('Content-Disposition'), 'attachment;')
|
|| false !== stripos($response->headers->get('Content-Disposition', ''), 'attachment;')
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user