The “hook” prefix on the Craft\InspectorPlugin::hookAddTwigExtension() method name has been deprecated. It should be renamed to addTwigExtension().