deprecationWarning function not working?

Hii there,

My project wants to deprecate an method but, of course, we want to inform the devs about it.
For this, we’ve called the deprecationWarning() function in the app, opened the app, checked the DebugKit… and nothing?

Is there something I’m doing wrong or is it broken?

probably https://book.cakephp.org/3.0/en/appendices/3-2-migration-guide.html#disabling-deprecation-warnings

deprecationWarning checks for E_USER_DEPRECATED flag https://github.com/cakephp/cakephp/blob/0decd7560d7edf24627484d4b04fb96ebe19f46b/src/Core/functions.php#L292

Hii there,

We had set our errorLevel to E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED a while ago because CakePHP threw the deprecation errors in the main app itself as well (instead of only in the debug bar).
Do you know of a way to circumvent this?

nope sorry, currently im using GraphQL and i can just set any field as deprecated but i dont know would i do it in normal way, probably just throw exception with deprecated message with code 410 (GONE) or with hint to other method 301 (MOVED PERMANENTLY)