On Thu, Mar 15, 2018 at 9:42 AM, David Causse <[email protected]> wrote:

> Looking at the MW codebase we don't seem to use assert frequently (only 26
> files [2] ).
>

We generally use the wikimedia/assert library[3] instead. That's used a lot
more often.[4] The README.md for that library includes some reasoning for
using it over PHP's assert(), with links to past discussion.

[3]: https://packagist.org/packages/wikimedia/assert
[4]:
https://codesearch.wmflabs.org/search/?q=%5CtAssert%3A%3A&i=nope&files=php%24&repos=

-- 
Brad Jorsch (Anomie)
Senior Software Engineer
Wikimedia Foundation
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to