Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Adapter Interface should not enforce constructor

Open
#145 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
45/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Stale
Tech stack
php
Domain
api

Research direction

Start with src/Adapter/Adapter.php around line 26 and read the Adapter interface and its constructor declaration. Done means the interface no longer enforces an implementation-specific constructor; check the repository's adapter implementations for compatibility and run the relevant test suite if available.

Written by the indexing model from the issue text.

Description

https://github.com/cloudflare/cloudflare-php/blob/master/src/Adapter/Adapter.php#L26

interface Adapter
{
    /**
     * Adapter constructor.
     *
     * @param Auth $auth
     * @param string $baseURI
     */
    public function __construct(Auth $auth, string $baseURI);

An interface should not enforce any constructor as this is an implementation-issue

Dominant language
PHP
Stars
674
Forks
268
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cloudflare/cloudflare-php

All issues in cloudflare/cloudflare-php

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.