Skip to content

Commit d1b714e

Browse files
committed
removed unnecessary E_USER_NOTICE
1 parent 28af524 commit d1b714e

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Http/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ private function checkHeaders()
290290
throw new Nette\InvalidStateException('Cannot send header after HTTP headers have been sent' . ($file ? " (output started at $file:$line)." : '.'));
291291

292292
} elseif ($this->warnOnBuffer && ob_get_length() && !array_filter(ob_get_status(TRUE), function ($i) { return !$i['chunk_size']; })) {
293-
trigger_error('Possible problem: you are sending a HTTP header while already having some data in output buffer. Try Tracy\OutputDebugger or start session earlier.', E_USER_NOTICE);
293+
trigger_error('Possible problem: you are sending a HTTP header while already having some data in output buffer. Try Tracy\OutputDebugger or start session earlier.');
294294
}
295295
}
296296

src/Http/Session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ public function setHandler(\SessionHandlerInterface $handler)
538538
private function sendCookie()
539539
{
540540
if (!headers_sent() && ob_get_level() && ob_get_length()) {
541-
trigger_error('Possible problem: you are starting session while already having some data in output buffer. This may not work if the outputted data grows. Try starting the session earlier.', E_USER_NOTICE);
541+
trigger_error('Possible problem: you are starting session while already having some data in output buffer. This may not work if the outputted data grows. Try starting the session earlier.');
542542
}
543543

544544
$cookie = $this->getCookieParameters();

src/Http/SessionSection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function &__get($name)
9797
{
9898
$this->start();
9999
if ($this->warnOnUndefined && !array_key_exists($name, $this->data)) {
100-
trigger_error("The variable '$name' does not exist in session section", E_USER_NOTICE);
100+
trigger_error("The variable '$name' does not exist in session section");
101101
}
102102

103103
return $this->data[$name];
@@ -191,7 +191,7 @@ public function setExpiration($time, $variables = NULL)
191191
$time = Nette\Utils\DateTime::from($time)->format('U');
192192
$max = (int) ini_get('session.gc_maxlifetime');
193193
if ($max !== 0 && ($time - time() > $max + 3)) { // 0 - unlimited in memcache handler, 3 - bulgarian constant
194-
trigger_error("The expiration time is greater than the session expiration $max seconds", E_USER_NOTICE);
194+
trigger_error("The expiration time is greater than the session expiration $max seconds");
195195
}
196196
$whenBrowserIsClosed = FALSE;
197197
}

0 commit comments

Comments
 (0)