File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -163,6 +163,8 @@ class Security
163163 * setup initial state.
164164 *
165165 * @param \Config\App $config
166+ *
167+ * @throws \Exception
166168 */
167169 public function __construct ($ config )
168170 {
@@ -192,9 +194,10 @@ public function __construct($config)
192194 /**
193195 * CSRF Verify
194196 *
195- * @param RequestInterface $request
197+ * @param RequestInterface $request
198+ *
196199 * @return $this|false
197- * @throws \LogicException
200+ * @throws \Exception
198201 */
199202 public function CSRFVerify (RequestInterface $ request )
200203 {
@@ -330,7 +333,7 @@ protected function CSRFSetHash(): string
330333 *
331334 * @return string
332335 */
333- public function sanitizeFilename ($ str , $ relative_path = false )
336+ public function sanitizeFilename (string $ str , bool $ relative_path = false ): string
334337 {
335338 $ bad = $ this ->filenameBadChars ;
336339
You can’t perform that action at this time.
0 commit comments