Closed (fixed)
Project:
Blog
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Mar 2019 at 18:05 UTC
Updated:
28 Apr 2020 at 20:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
maliknaik commentedFixed all the deprecated methods.
Comment #3
maliknaik commentedComment #5
maliknaik commentedComment #6
nevergone$ /app/vendor/bin/drupal-check -a /app/web/modules/contrib/blog
------ -------------------------------------------------------------------------
Line blog.module
------ -------------------------------------------------------------------------
18 Call to deprecated method l() of class Drupal:
in drupal:8.0.0 and is removed from drupal:9.0.0. Use
\Drupal\Core\Link::fromTextAndUrl() instead.
47 Function url not found.
96 Call to deprecated function db_select():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container and
call select() on it. For example,
------ -------------------------------------------------------------------------
------ ---------------------------------------------------------------------------------------------------------
Line src/BlogBreadcrumbBuilder.php
------ ---------------------------------------------------------------------------------------------------------
35 Method Drupal\blog\BlogBreadcrumbBuilder::applies() should return bool but return statement is missing.
------ ---------------------------------------------------------------------------------------------------------
------ -------------------------------------------------------
Line src/Controller/BlogController.php
------ -------------------------------------------------------
36 Unsafe usage of new static().
💡 Consider making the class or the constructor final.
------ -------------------------------------------------------
------ -------------------------------------------------------
Line src/Plugin/Menu/MyBlogLink.php
------ -------------------------------------------------------
34 Unsafe usage of new static().
💡 Consider making the class or the constructor final.
------ -------------------------------------------------------
------ ------------------------------------------------------------------------------
Line tests/src/Functional/BreadcrumbTest.php
------ ------------------------------------------------------------------------------
51 \Drupal calls should be avoided in classes, use dependency injection instead
62 \Drupal calls should be avoided in classes, use dependency injection instead
------ ------------------------------------------------------------------------------
Comment #8
nevergoneDone.